Browse Source

Merge pull request #2847 from LefterisJP/ethminer_geth_connect

Do not halt mining if submitHashrate fails
cl-refactor
Gav Wood 10 years ago
parent
commit
d7743b960c
  1. 10
      ethminer/MinerAux.h

10
ethminer/MinerAux.h

@ -513,7 +513,15 @@ private:
minelog << "Getting work package...";
auto rate = mp.rate();
rpc.eth_submitHashrate((int)rate, "0x" + id.hex());
try
{
rpc.eth_submitHashrate((int)rate, "0x" + id.hex());
}
catch (jsonrpc::JsonRpcException const& _e)
{
cwarn << "Failed to submit hashrate.";
cwarn << boost::diagnostic_information(_e);
}
Json::Value v = rpc.eth_getWork();
h256 hh(v[0].asString());

Loading…
Cancel
Save