mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Reduce the number of untrimmed headers in memory, since they can be untrimmed on demand now
This commit is contained in:
parent
c28c5ce619
commit
1722d4aac1
1 changed files with 1 additions and 1 deletions
|
|
@ -1017,7 +1017,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
|||
// back to current epoch start, and then an additional total_valid_epochs on top of that.
|
||||
// We add one epoch here for the current partial epoch, and then another one for good luck.
|
||||
|
||||
node::nMustKeepFullHeaders = (chainparams.GetConsensus().total_valid_epochs + 2) * epoch_length;
|
||||
node::nMustKeepFullHeaders = chainparams.GetConsensus().total_valid_epochs * epoch_length;
|
||||
// This is the number of headers we can have in flight downloading at a time, beyond the
|
||||
// set of blocks we've already validated. Capping this is necessary to keep memory usage
|
||||
// bounded during IBD.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue