disable startup pruning (#5191)

it has been shown to cause long startup times - a better strategy is
needed
This commit is contained in:
Jacek Sieka 2023-07-18 22:29:23 +02:00 committed by GitHub
parent dd35d2d309
commit b3b5238434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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