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

Commit d1d4927

Browse files
authored
Add new config OnlyAllowExportOnSnapshotVersion for sc (#584)
## Describe your changes and provide context Bumped SeiDB and add new config for OnlyAllowExportOnSnapshotVersion ## Testing performed to validate your change
1 parent 5772e15 commit d1d4927

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ replace (
192192
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
193193
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
194194
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
195-
github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.46
195+
github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.51
196196
// Latest goleveldb is broken, we have to stick to this version
197197
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
198198
github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.5.4-0.20250311133435-5d1918f7f5fb

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,8 +967,8 @@ github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg
967967
github.com/segmentio/fasthash v1.0.3/go.mod h1:waKX8l2N8yckOgmSsXJi7x1ZfdKZ4x7KRMzBtS3oedY=
968968
github.com/sei-protocol/go-ethereum v1.13.5-sei-21 h1:uzBquo71kOMs2bZjmYsiDQb7t5VpksYzOHnpGGQNaIU=
969969
github.com/sei-protocol/go-ethereum v1.13.5-sei-21/go.mod h1:kcRZmuzRn1lVejiFNTz4l4W7imnpq1bDAnuKS/RyhbQ=
970-
github.com/sei-protocol/sei-db v0.0.46 h1:naXfSp1I3UgJJm/iSvXpdFzr9nofEOxp/EekcAVj7wY=
971-
github.com/sei-protocol/sei-db v0.0.46/go.mod h1:m5g7p0QeAS3dNJHIl28zQpzOgxQmvYqPb7t4hwgIOCA=
970+
github.com/sei-protocol/sei-db v0.0.51 h1:jK6Ps+jDbGdWIPZttaWk7VIsq8aLWWlkTp9axIraL/U=
971+
github.com/sei-protocol/sei-db v0.0.51/go.mod h1:m5g7p0QeAS3dNJHIl28zQpzOgxQmvYqPb7t4hwgIOCA=
972972
github.com/sei-protocol/sei-iavl v0.1.9 h1:y4mVYftxLNRs6533zl7N0/Ch+CzRQc04JDfHolIxgBE=
973973
github.com/sei-protocol/sei-iavl v0.1.9/go.mod h1:7PfkEVT5dcoQE+s/9KWdoXJ8VVVP1QpYYPLdxlkSXFk=
974974
github.com/sei-protocol/sei-tendermint v0.5.4-0.20250311133435-5d1918f7f5fb h1:BSMYeAgMnM/FAjYR5fjTsj6d7V8nsDr0En9G0S/953U=

server/config/config.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -387,14 +387,15 @@ func GetConfig(v *viper.Viper) (Config, error) {
387387
SnapshotDirectory: v.GetString("state-sync.snapshot-directory"),
388388
},
389389
StateCommit: config.StateCommitConfig{
390-
Enable: v.GetBool("state-commit.enable"),
391-
Directory: v.GetString("state-commit.directory"),
392-
ZeroCopy: v.GetBool("state-commit.zero-copy"),
393-
AsyncCommitBuffer: v.GetInt("state-commit.async-commit-buffer"),
394-
SnapshotKeepRecent: v.GetUint32("state-commit.snapshot-keep-recent"),
395-
SnapshotInterval: v.GetUint32("state-commit.snapshot-interval"),
396-
SnapshotWriterLimit: v.GetInt("state-commit.snapshot-writer-limit"),
397-
CacheSize: v.GetInt("state-commit.cache-size"),
390+
Enable: v.GetBool("state-commit.enable"),
391+
Directory: v.GetString("state-commit.directory"),
392+
ZeroCopy: v.GetBool("state-commit.zero-copy"),
393+
AsyncCommitBuffer: v.GetInt("state-commit.async-commit-buffer"),
394+
SnapshotKeepRecent: v.GetUint32("state-commit.snapshot-keep-recent"),
395+
SnapshotInterval: v.GetUint32("state-commit.snapshot-interval"),
396+
SnapshotWriterLimit: v.GetInt("state-commit.snapshot-writer-limit"),
397+
CacheSize: v.GetInt("state-commit.cache-size"),
398+
OnlyAllowExportOnSnapshotVersion: v.GetBool("state-commit.only-allow-export-on-snapshot-version"),
398399
},
399400
StateStore: config.StateStoreConfig{
400401
Enable: v.GetBool("state-store.enable"),

0 commit comments

Comments
 (0)