// In EthereumStratum/2.0.0 we can evaluate the severity of the
// error. An 2xx error means the solution have been accepted but is
// likely stale
bool isStale = false;
if (!_isSuccess)
{
string errCode = responseObject["error"].get("code","").asString();
if (errCode.substr(0, 1) == "2")
_isSuccess = isStale = true;
}
Error codes 2xx : request accepted and processed but some additional info in the Error codes 2xx : request accepted and processed but some additional info in the error member may give hint
Example 2 : a client submits a solution and server accepts it but it accounts the share as stale. Server MUST respond like this
{
"id": 31,
"error": {
"code": 202,
"message" : "Stale"
}
}
コメント