fix jobid for ckpool

This commit is contained in:
Ben
2023-06-08 19:01:50 -04:00
committed by johnny9
parent 63bc2e6326
commit 12770f3393
2 changed files with 5 additions and 4 deletions

View File

@ -115,12 +115,13 @@ void STRATUM_V1_parse(StratumApiV1Message* message, const char * stratum_json)
if (method_json != NULL && cJSON_IsString(method_json)) {
if (strcmp("mining.notify", method_json->valuestring) == 0) {
result = MINING_NOTIFY;
send_uid++;
} else if (strcmp("mining.set_difficulty", method_json->valuestring) == 0) {
result = MINING_SET_DIFFICULTY;
} else if (strcmp("mining.set_version_mask", method_json->valuestring) == 0) {
result = MINING_SET_VERSION_MASK;
}
send_uid++;
} else {
//parse results
cJSON * result_json = cJSON_GetObjectItem(json, "result");