Add missing AssertLockHeld in ConnectBlock

This commit is contained in:
Wladimir J. van der Laan 2014-04-23 08:55:24 +02:00 committed by langerhans
parent 298a7ab2e3
commit 5b910bbfe5

View file

@ -1829,6 +1829,7 @@ void ThreadScriptCheck() {
bool ConnectBlock(CBlock& block, CValidationState& state, CBlockIndex* pindex, CCoinsViewCache& view, bool fJustCheck)
{
AssertLockHeld(cs_main);
// Check it again in case a previous version let a bad block in
if (!CheckBlock(block, state, !fJustCheck, !fJustCheck))
return false;