From a475285a535ca4834df51569f1d252307fd6d13c Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 7 May 2014 15:12:31 +0200 Subject: [PATCH] Add missing cs_main lock to VerifyDB Fixes issue #4139. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 40c713ce9..7b9ca2878 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2875,6 +2875,7 @@ bool static LoadBlockIndexDB() bool VerifyDB(int nCheckLevel, int nCheckDepth) { + LOCK(cs_main); if (chainActive.Tip() == NULL || chainActive.Tip()->pprev == NULL) return true;