|
@ -958,10 +958,14 @@ private: |
|
|
if (client.isConnected()) |
|
|
if (client.isConnected()) |
|
|
{ |
|
|
{ |
|
|
if (client.current()) |
|
|
if (client.current()) |
|
|
|
|
|
{ |
|
|
minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats(); |
|
|
minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats(); |
|
|
|
|
|
} |
|
|
else if (client.waitState() == MINER_WAIT_STATE_WORK) |
|
|
else if (client.waitState() == MINER_WAIT_STATE_WORK) |
|
|
|
|
|
{ |
|
|
minelog << "Waiting for work package..."; |
|
|
minelog << "Waiting for work package..."; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod)); |
|
|
this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -993,10 +997,14 @@ private: |
|
|
if (client.isConnected()) |
|
|
if (client.isConnected()) |
|
|
{ |
|
|
{ |
|
|
if (client.current()) |
|
|
if (client.current()) |
|
|
|
|
|
{ |
|
|
minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats(); |
|
|
minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats(); |
|
|
|
|
|
} |
|
|
else if (client.waitState() == MINER_WAIT_STATE_WORK) |
|
|
else if (client.waitState() == MINER_WAIT_STATE_WORK) |
|
|
|
|
|
{ |
|
|
minelog << "Waiting for work package..."; |
|
|
minelog << "Waiting for work package..."; |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod)); |
|
|
this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|