Skip to content

Commit 3109a1f

Browse files
committed
refactor: Avoid locking cs_main in ProcessNewBlockHeaders
1 parent dcc448e commit 3109a1f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/validation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,6 @@ bool ProcessNewBlockHeaders(const std::vector<CBlockHeader>& headers, CValidatio
34023402
}
34033403
}
34043404
if (NotifyHeaderTip()) {
3405-
LOCK(cs_main);
34063405
if (::ChainstateActive().IsInitialBlockDownload() && ppindex && *ppindex) {
34073406
LogPrintf("Synchronizing blockheaders, height: %d (~%.2f%%)\n", (*ppindex)->nHeight, 100.0/((*ppindex)->nHeight+(GetAdjustedTime() - (*ppindex)->GetBlockTime()) / Params().GetConsensus().nPowTargetSpacing) * (*ppindex)->nHeight);
34083407
}

0 commit comments

Comments
 (0)