Skip to content

Commit 8bedcac

Browse files
bdchathamclaude
andcommitted
feat: add full-node pruning defaults and PruningCustom constant
Move pruning configuration (custom strategy, keep_recent=86400, keep_every=500, interval=10) into applyFullOverrides so all full and archive nodes inherit production-tuned pruning defaults. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f9fa637 commit 8bedcac

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

defaults.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ func applyFullOverrides(cfg *SeiConfig) {
279279
cfg.Network.RPC.ListenAddress = "tcp://0.0.0.0:26657"
280280
cfg.Network.P2P.ListenAddress = "tcp://0.0.0.0:26656"
281281

282+
cfg.Chain.ConcurrencyWorkers = 500
283+
cfg.Storage.PruningStrategy = PruningCustom
284+
cfg.Storage.PruningKeepRecent = "86400"
285+
cfg.Storage.PruningKeepEvery = "500"
286+
cfg.Storage.PruningInterval = "10"
287+
282288
cfg.API.REST.Enable = true
283289
cfg.API.GRPC.Enable = true
284290
cfg.API.GRPCWeb.Enable = true
@@ -297,6 +303,10 @@ func applyArchiveOverrides(cfg *SeiConfig) {
297303
cfg.Storage.StateStore.KeepRecent = 0
298304
cfg.Chain.MinRetainBlocks = 0
299305
cfg.EVM.MaxTraceLookbackBlocks = -1
306+
307+
cfg.Storage.StateCommit.AsyncCommitBuffer = 100
308+
cfg.Storage.StateCommit.MemIAVL.SnapshotKeepRecent = 1
309+
cfg.Storage.StateCommit.MemIAVL.SnapshotMinTimeInterval = 20000
300310
}
301311

302312
// SnapshotGenerationOverrides returns the config overrides needed when a node

0 commit comments

Comments
 (0)