Skip to content
This repository was archived by the owner on Oct 21, 2019. It is now read-only.

Commit 1fa5abf

Browse files
author
nicehashdev
committed
Linux compile fix Genoil#2
1 parent b933568 commit 1fa5abf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

libstratum/EthStratumClient.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ void EthStratumClient::processReponse(Json::Value& responseObject)
296296

297297
params = responseObject.get("result", Json::Value::null);
298298
if (params.isArray())
299-
processExtranonce(params.get((Json::Value::ArrayIndex)1, "").asString());
299+
{
300+
std::string enonce = params.get((Json::Value::ArrayIndex)1, "").asString();
301+
processExtranonce(enonce);
302+
}
300303

301304
os << "{\"id\": 2, \"method\": \"mining.extranonce.subscribe\", \"params\": []}\n";
302305

0 commit comments

Comments
 (0)