Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Commit 7e1af2c

Browse files
committed
Merge branch 'main' into yzang/fix-async-flush
* main: config: fix default value comment (#115)
2 parents 42ec3bc + fb9ecb0 commit 7e1af2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type StateCommitConfig struct {
3434
AsyncCommitBuffer int `mapstructure:"async-commit-buffer"`
3535

3636
// SnapshotKeepRecent defines what many old snapshots (excluding the latest one) to keep
37-
// defaults to 1 to make sure ibc relayers work.
37+
// defaults to 0 to only keep one current snapshot
3838
SnapshotKeepRecent uint32 `mapstructure:"snapshot-keep-recent"`
3939

4040
// SnapshotInterval defines the block interval the memiavl snapshot is taken, default to 10000.

config/toml.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sc-zero-copy = {{ .StateCommit.ZeroCopy }}
2323
sc-async-commit-buffer = {{ .StateCommit.AsyncCommitBuffer }}
2424
2525
# KeepRecent defines how many state-commit snapshots (besides the latest one) to keep
26-
# defaults to 1 to make sure ibc relayers work.
26+
# defaults to 0 to only keep one current snapshot
2727
sc-keep-recent = {{ .StateCommit.SnapshotKeepRecent }}
2828
2929
# SnapshotInterval defines the block interval the snapshot is taken, default to 10000 blocks.

0 commit comments

Comments
 (0)