Skip to content

Commit

Permalink
refactor: update default pruning strategy (#9859) (#9863)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Aug 6, 2021
1 parent 0054c40 commit 1afd470
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions store/types/pruning.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ const (
)

var (
// PruneDefault defines a pruning strategy where the last 100 heights are kept
// in addition to every 100th and where to-be pruned heights are pruned at
// every 10th height.
PruneDefault = NewPruningOptions(100, 100, 10)
// PruneDefault defines a pruning strategy where the last 362880 heights are
// kept in addition to every 100th and where to-be pruned heights are pruned
// at every 10th height. The last 362880 heights are kept assuming the typical
// block time is 5s and typical unbonding period is 21 days. If these values
// do not match the applications' requirements, use the "custom" option.
PruneDefault = NewPruningOptions(362880, 100, 10)

// PruneEverything defines a pruning strategy where all committed heights are
// deleted, storing only the current height and where to-be pruned heights are
Expand Down

0 comments on commit 1afd470

Please sign in to comment.