Browse Source

Add missing AssertLockHeld in ConnectBlock

tags/v0.15.1
Wladimir J. van der Laan 7 years ago
parent
commit
b39a07dc42
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/main.cpp

+ 1
- 0
src/main.cpp View File

@@ -1727,6 +1727,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;

Loading…
Cancel
Save