diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-09-03 15:18:36 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-09-06 00:38:53 +0100 |
commit | 3109a1f948f3c8fd500defbdc4e59bfb2953c30b (patch) | |
tree | 9e27a726c036c4463b0efe47b6d0a042e3a4b3e1 /src | |
parent | dcc448e3d2b97f7e4e23f5ed174762cec3530306 (diff) |
refactor: Avoid locking cs_main in ProcessNewBlockHeaders
Diffstat (limited to 'src')
-rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 04aad98380..0c28fa6c01 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3402,7 +3402,6 @@ bool ProcessNewBlockHeaders(const std::vector<CBlockHeader>& headers, CValidatio } } if (NotifyHeaderTip()) { - LOCK(cs_main); if (::ChainstateActive().IsInitialBlockDownload() && ppindex && *ppindex) { LogPrintf("Synchronizing blockheaders, height: %d (~%.2f%%)\n", (*ppindex)->nHeight, 100.0/((*ppindex)->nHeight+(GetAdjustedTime() - (*ppindex)->GetBlockTime()) / Params().GetConsensus().nPowTargetSpacing) * (*ppindex)->nHeight); } |