aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-05-07 15:12:31 +0200
committerlangerhans <[email protected]>2014-06-29 15:38:37 +0200
commit72bd7b81f16f5d95578ffe7ee911894941ae9873 (patch)
tree2b4787c66f1ac422b3e9f29ed48293465c8fa41a /src/main.cpp
parentui: Check for !pixmap() before trying to export QR code (diff)
downloaddiscoin-72bd7b81f16f5d95578ffe7ee911894941ae9873.tar.xz
discoin-72bd7b81f16f5d95578ffe7ee911894941ae9873.zip
Add missing cs_main lock to VerifyDB
Fixes issue #4139.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2f57199b2..1ceed88bd 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3056,6 +3056,7 @@ bool static LoadBlockIndexDB()
bool VerifyDB(int nCheckLevel, int nCheckDepth)
{
+ LOCK(cs_main);
if (chainActive.Tip() == NULL || chainActive.Tip()->pprev == NULL)
return true;