mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-26 17:51:45 +01:00
Correctly identify rejected stratum submission
This commit is contained in:
parent
4ac727268d
commit
feda6609c1
@ -122,16 +122,16 @@ void STRATUM_V1_parse(StratumApiV1Message * message, const char * stratum_json)
|
||||
} else {
|
||||
// parse results
|
||||
cJSON * result_json = cJSON_GetObjectItem(json, "result");
|
||||
if (result_json != NULL && cJSON_IsBool(result_json)) {
|
||||
|
||||
if (result_json == NULL){
|
||||
message->response_success = false;
|
||||
}
|
||||
else if (cJSON_IsBool(result_json)) {
|
||||
result = STRATUM_RESULT;
|
||||
|
||||
bool response_success = false;
|
||||
if (result_json != NULL && cJSON_IsTrue(result_json)) {
|
||||
response_success = true;
|
||||
if (cJSON_IsTrue(result_json)) {
|
||||
message->response_success = true;
|
||||
}else{
|
||||
message->response_success = false;
|
||||
}
|
||||
|
||||
message->response_success = response_success;
|
||||
} else {
|
||||
cJSON * mask = cJSON_GetObjectItem(result_json, "version-rolling.mask");
|
||||
if (mask != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user