Skip to content

Commit

Permalink
chore: disable pruning by default
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jul 24, 2024
1 parent 7936ae2 commit ec2e88c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions rollappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,13 @@ func initAppConfig() (string, interface{}) {
customAppTemplate := serverconfig.DefaultConfigTemplate
srvCfg := serverconfig.DefaultConfig()

//Default pruning for a rollapp, represent 2 weeks of states kept while pruning in intervals of 10 minutes
srvCfg.Pruning = pruningtypes.PruningOptionCustom
srvCfg.PruningInterval = "18000"
srvCfg.PruningKeepRecent = "6048000"
// Default to no pruning
// With default values when pruning is enabled set to keep 10k blocks, prune states older
// then 100 at an interval of 10 states
srvCfg.Pruning = pruningtypes.PruningOptionNothing
srvCfg.PruningInterval = "10"
srvCfg.PruningKeepRecent = "100"
srvCfg.MinRetainBlocks = 10000

return customAppTemplate, srvCfg
}
Expand Down

0 comments on commit ec2e88c

Please sign in to comment.