Skip to content

Commit

Permalink
fix: force keep 9W blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Nov 19, 2024
1 parent 7523a64 commit bca9c5d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/rawdb/chain_freezer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bca9c5d

Please sign in to comment.