Browse Source

Avoid rejigging only if we're syncing.

cl-refactor
Gav Wood 10 years ago
parent
commit
1439554375
  1. 2
      libethereum/Client.cpp

2
libethereum/Client.cpp

@ -765,7 +765,7 @@ void Client::startMining()
void Client::rejigMining()
{
if ((wouldMine() || remoteActive()) && !m_bq.items().first && (!isChainBad() || mineOnBadChain()) /*&& (forceMining() || transactionsWaiting())*/)
if ((wouldMine() || remoteActive()) && !isSyncing() && (!isChainBad() || mineOnBadChain()) /*&& (forceMining() || transactionsWaiting())*/)
{
cnote << "Rejigging mining...";
DEV_WRITE_GUARDED(x_working)

Loading…
Cancel
Save