Skip to content

Commit

Permalink
feat(server): add helper to set default pruning settings (#488)
Browse files Browse the repository at this point in the history
(cherry picked from commit 005f2bb)
  • Loading branch information
artemijspavlovs authored and omritoptix committed Aug 13, 2024
1 parent 831dff2 commit 937768f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions server/config/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package config

import (
pruningtypes "github.com/cosmos/cosmos-sdk/pruning/types"
"github.com/cosmos/cosmos-sdk/server/config"
)

func SetDefaultPruningSettings(cfg *config.Config) {
cfg.Pruning = pruningtypes.PruningOptionNothing
cfg.PruningInterval = "10"
cfg.PruningKeepRecent = "100"
cfg.MinRetainBlocks = 10000
}

0 comments on commit 937768f

Please sign in to comment.