diff --git a/core/rawdb/chain_freezer.go b/core/rawdb/chain_freezer.go index 4953c81237..fd52437027 100644 --- a/core/rawdb/chain_freezer.go +++ b/core/rawdb/chain_freezer.go @@ -71,10 +71,12 @@ func newChainFreezer(datadir string, namespace string, readonly bool, offset uin return nil, err } cf := chainFreezer{ - Freezer: freezer, - quit: make(chan struct{}), - trigger: make(chan chan struct{}), - multiDatabase: multiDatabase, + Freezer: freezer, + quit: make(chan struct{}), + trigger: make(chan chan struct{}), + // After enabling pruneAncient, the ancient data is not retained. In some specific scenarios where it is + // necessary to roll back to blocks prior to the finalized block, it is mandatory to keep the most recent 90,000 blocks in the database to ensure proper functionality and rollback capability. + multiDatabase: false, } cf.threshold.Store(params.FullImmutabilityThreshold) return &cf, nil