diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-04-23 08:55:24 +0200 |
|---|---|---|
| committer | langerhans <[email protected]> | 2014-05-29 20:07:24 +0200 |
| commit | 5b910bbfe5b1e97f5d4fc11d3119ae7e3d1f5733 (patch) | |
| tree | d768003a4311c00ad8e2b48edfdc8b5481f015da /src/main.cpp | |
| parent | qt: get required locks upfront in polling functions (diff) | |
| download | discoin-5b910bbfe5b1e97f5d4fc11d3119ae7e3d1f5733.tar.xz discoin-5b910bbfe5b1e97f5d4fc11d3119ae7e3d1f5733.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 b63af3163..5d20b45f2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; |