diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-04-23 08:55:24 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-04-23 09:07:18 +0200 |
| commit | b39a07dc42ab6ba746a25206969fb81913146f1f (patch) | |
| tree | 15d7a1f8f697ef2406b42feb059f05b3cfd223d6 /src/main.cpp | |
| parent | qt: get required locks upfront in polling functions (diff) | |
| download | discoin-b39a07dc42ab6ba746a25206969fb81913146f1f.tar.xz discoin-b39a07dc42ab6ba746a25206969fb81913146f1f.zip | |
Add missing AssertLockHeld in ConnectBlock
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0bbe83370..a591168c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; |