Wait longer to ensure full chain before starting to mine
This commit is contained in:
@@ -754,6 +754,15 @@ void static BitcoinMiner_noeq()
|
|||||||
if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 )
|
if ( komodo_baseid(ASSETCHAINS_SYMBOL) < 0 )
|
||||||
break;
|
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();
|
miningTimer.start();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user