mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Add missing AssertLockHeld in ConnectBlock
This commit is contained in:
parent
41106a50d2
commit
b39a07dc42
@ -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…
Reference in New Issue
Block a user