Wait longer to ensure full chain before starting to mine

This commit is contained in:
miketout
2018-05-06 14:11:55 -07:00
parent 05f6e6339e
commit 9f3e2213bf

View File

@@ -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 {