diff --git a/src/main.cpp b/src/main.cpp index 74615fed7..989d52a02 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3198,7 +3198,7 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams, } } } - } while(pindexMostWork != chainActive.Tip()); + } while (pindexNewTip != pindexMostWork); CheckBlockIndex(chainparams.GetConsensus()); // Write changes periodically to disk, after relay.