Add missing cs_main lock to VerifyDB

Fixes issue #4139.
This commit is contained in:
Wladimir J. van der Laan 2014-05-07 15:12:31 +02:00 committed by langerhans
parent 77c26ba357
commit 72bd7b81f1

View file

@ -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;