mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-31 08:46:57 +00:00
disable startup pruning (#5191)
it has been shown to cause long startup times - a better strategy is needed
This commit is contained in:
parent
dd35d2d309
commit
b3b5238434
@ -2193,7 +2193,10 @@ proc pruneHistory*(dag: ChainDAGRef, startup = false) =
|
||||
|
||||
cur = dag.parent(bid)
|
||||
|
||||
if startup and
|
||||
# TODO There have been varied reports of startup pruning causing long
|
||||
# startup times - an incremental approach would be needed here also
|
||||
if false and
|
||||
startup and
|
||||
dag.cfg.consensusForkAtEpoch(blockHorizon.epoch) > ConsensusFork.Phase0:
|
||||
# Once during start, we'll clear all "old fork" data - this ensures we get
|
||||
# rid of any leftover junk in the tables - we do so after linear pruning
|
||||
|
Loading…
x
Reference in New Issue
Block a user