aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-05-07 15:12:31 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-05-07 15:15:28 +0200
commita475285a535ca4834df51569f1d252307fd6d13c (patch)
tree7e8ab8527f8c02cdd8dd0bf2c3e401f091d96120
parent13d3adb651cc78e24e12dd2a8f55631b25681abf (diff)
downloadbitcoin-a475285a535ca4834df51569f1d252307fd6d13c.tar.xz
Add missing cs_main lock to VerifyDB
Fixes issue #4139.
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 40c713ce93..7b9ca2878c 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;