From cf16a6e0d168a514a419bc9250e43c57842ba567 Mon Sep 17 00:00:00 2001 From: Kaz Wesley Date: Mon, 25 Apr 2016 12:31:32 -0700 Subject: [PATCH] lock cs_main for chainActive --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.