Skip to content

Commit b3b5238

Browse files
authored
disable startup pruning (#5191)
it has been shown to cause long startup times - a better strategy is needed
1 parent dd35d2d commit b3b5238

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

beacon_chain/consensus_object_pools/blockchain_dag.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,10 @@ proc pruneHistory*(dag: ChainDAGRef, startup = false) =
21932193

21942194
cur = dag.parent(bid)
21952195

2196-
if startup and
2196+
# TODO There have been varied reports of startup pruning causing long
2197+
# startup times - an incremental approach would be needed here also
2198+
if false and
2199+
startup and
21972200
dag.cfg.consensusForkAtEpoch(blockHorizon.epoch) > ConsensusFork.Phase0:
21982201
# Once during start, we'll clear all "old fork" data - this ensures we get
21992202
# rid of any leftover junk in the tables - we do so after linear pruning

0 commit comments

Comments
 (0)