Correct handling of block submit responses for Dero
This commit is contained in:
parent
cf104ebdc5
commit
6bb8913066
1 changed files with 10 additions and 1 deletions
|
@ -431,7 +431,16 @@ bool xmrig::DaemonClient::parseResponse(int64_t id, const rapidjson::Value &resu
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handleSubmitResponse(id)) {
|
const char* error_msg = nullptr;
|
||||||
|
|
||||||
|
if ((m_apiVersion == API_DERO) && result.HasMember("status")) {
|
||||||
|
error_msg = result["status"].GetString();
|
||||||
|
if (!error_msg || (strlen(error_msg) == 0) || (strcmp(error_msg, "OK") == 0)) {
|
||||||
|
error_msg = nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (handleSubmitResponse(id, error_msg)) {
|
||||||
getBlockTemplate();
|
getBlockTemplate();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue