mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Add missing LOCK(cs_main)
This commit is contained in:
parent
ac00c66287
commit
e763310b54
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user