Skip to content

Commit

Permalink
Change interval max.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taztingo committed Jan 5, 2024
1 parent 28adf3b commit 2e75b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func WrapStoreLoader(wrapper StoreLoaderWrapper, storeLoader baseapp.StoreLoader
// PruningWrapper creates a new StoreLoader that first validates the pruning settings before calling the provided StoreLoader.
func PruningWrapper(logger log.Logger, appOpts servertypes.AppOptions, storeLoader baseapp.StoreLoader) baseapp.StoreLoader {
return WrapStoreLoader(func(ms sdk.CommitMultiStore, sl baseapp.StoreLoader) error {
const MaxPruningInterval = 13
const MaxPruningInterval = 999
interval := cast.ToUint64(appOpts.Get("pruning-interval"))

if interval > MaxPruningInterval {
Expand Down

0 comments on commit 2e75b80

Please sign in to comment.