mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
improve efficiency by gating locks with
This commit is contained in:
parent
b4185c7008
commit
46a3ee29bc
2 changed files with 5 additions and 4 deletions
|
|
@ -489,7 +489,7 @@ std::vector<std::pair<CScript, CScript>> GetValidFedpegScripts(const CBlockIndex
|
|||
break;
|
||||
}
|
||||
|
||||
{
|
||||
if (node::fTrimHeaders) {
|
||||
LOCK(cs_main);
|
||||
ForceUntrimHeader(p_epoch_start);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue