|
|
@ -270,7 +270,7 @@ namespace Stratum |
|
|
|
result.Add(int64(4)); |
|
|
|
result.Add(int64(4)); |
|
|
|
|
|
|
|
|
|
|
|
JSON response; |
|
|
|
JSON response; |
|
|
|
response["id"] = msg["id"].GetInt(); |
|
|
|
response["id"] = msg["id"]; |
|
|
|
response["result"] = result; |
|
|
|
response["result"] = result; |
|
|
|
response["error"]; |
|
|
|
response["error"]; |
|
|
|
|
|
|
|
|
|
|
@ -296,13 +296,13 @@ namespace Stratum |
|
|
|
SetDifficulty(_minDiff); |
|
|
|
SetDifficulty(_minDiff); |
|
|
|
|
|
|
|
|
|
|
|
JSON response; |
|
|
|
JSON response; |
|
|
|
response["id"] = msg["id"].GetInt(); |
|
|
|
response["id"] = msg["id"]; |
|
|
|
response["error"]; |
|
|
|
response["error"]; |
|
|
|
response["result"] = true; |
|
|
|
response["result"] = true; |
|
|
|
SendMessage(response); |
|
|
|
SendMessage(response); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
JSON response; |
|
|
|
JSON response; |
|
|
|
response["id"] = msg["id"].GetInt(); |
|
|
|
response["id"] = msg["id"]; |
|
|
|
response["error"].Add(int64(20)); |
|
|
|
response["error"].Add(int64(20)); |
|
|
|
response["error"].Add("Authentication failed"); |
|
|
|
response["error"].Add("Authentication failed"); |
|
|
|
response["error"].Add(JSON()); |
|
|
|
response["error"].Add(JSON()); |
|
|
|