Add missing LOCK(cs_main)

This commit is contained in:
Alexander Block 2019-03-11 15:18:15 +01:00
parent ac00c66287
commit e763310b54

View File

@ -732,6 +732,7 @@ void CInstantSendManager::NotifyChainLock(const CBlockIndex* pindex)
while (pindex && pindex->GetBlockHash() != lastChainLockBlock) { while (pindex && pindex->GetBlockHash() != lastChainLockBlock) {
CBlock block; CBlock block;
{ {
LOCK(cs_main);
if (!ReadBlockFromDisk(block, pindex, Params().GetConsensus())) { if (!ReadBlockFromDisk(block, pindex, Params().GetConsensus())) {
pindex = pindex->pprev; pindex = pindex->pprev;
continue; continue;