Browse Source

Fix issue in stratum

cl-refactor
Paweł Bylica 8 years ago
parent
commit
d7cf689098
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 2
      libstratum/EthStratumClient.cpp

2
libstratum/EthStratumClient.cpp

@ -299,7 +299,7 @@ void EthStratumClient::processExtranonce(std::string& enonce)
void EthStratumClient::processReponse(Json::Value& responseObject) void EthStratumClient::processReponse(Json::Value& responseObject)
{ {
Json::Value error = responseObject.get("error", new Json::Value); Json::Value error = responseObject.get("error", {});
if (error.isArray()) if (error.isArray())
{ {
string msg = error.get(1, "Unknown error").asString(); string msg = error.get(1, "Unknown error").asString();

Loading…
Cancel
Save