Browse Source

Wait longer to ensure full chain before starting to mine

pull/4/head
miketout 6 years ago
parent
commit
9f3e2213bf
  1. 9
      src/miner.cpp

9
src/miner.cpp

@ -754,6 +754,15 @@ void static BitcoinMiner_noeq()
if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 )
break;
}
CBlockIndex* curTip;
do {
curTip = chainActive.Tip();
printf("Verifying block height %d", chainActive.Tip()->nHeight + 1);
sleep(2);
} while (curTip != chainActive.Tip());
printf("Mining height %d", chainActive.Tip()->nHeight + 1);
miningTimer.start();
try {

Loading…
Cancel
Save