From b44e56d12243ba5d3ee54cadc5e5927a27acb5ac Mon Sep 17 00:00:00 2001 From: blindchaser Date: Wed, 1 Oct 2025 18:13:28 -0400 Subject: [PATCH] config: fix default value comment --- config/config.go | 2 +- config/toml.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 81af657e..5fda62ad 100644 --- a/config/config.go +++ b/config/config.go @@ -34,7 +34,7 @@ type StateCommitConfig struct { AsyncCommitBuffer int `mapstructure:"async-commit-buffer"` // SnapshotKeepRecent defines what many old snapshots (excluding the latest one) to keep - // defaults to 1 to make sure ibc relayers work. + // defaults to 0 to only keep one current snapshot SnapshotKeepRecent uint32 `mapstructure:"snapshot-keep-recent"` // SnapshotInterval defines the block interval the memiavl snapshot is taken, default to 10000. diff --git a/config/toml.go b/config/toml.go index 4e5da191..90ae4dd3 100644 --- a/config/toml.go +++ b/config/toml.go @@ -23,7 +23,7 @@ sc-zero-copy = {{ .StateCommit.ZeroCopy }} sc-async-commit-buffer = {{ .StateCommit.AsyncCommitBuffer }} # KeepRecent defines how many state-commit snapshots (besides the latest one) to keep -# defaults to 1 to make sure ibc relayers work. +# defaults to 0 to only keep one current snapshot sc-keep-recent = {{ .StateCommit.SnapshotKeepRecent }} # SnapshotInterval defines the block interval the snapshot is taken, default to 10000 blocks.