You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: v1→v2 config schema migration for seid v6.5 write mode rename
seid v6.5 (sei-chain commit 0412e4e84) replaced the WriteMode enum to
model the FlatKV migration lifecycle. cosmos_only → memiavl_only is now
the breaking change that crashes any node provisioned with the old default.
Changes:
- types.go: add v2 WriteMode constants (memiavl_only, migrate_evm,
evm_migrated, migrate_all_but_bank, all_migrated_but_bank,
migrate_bank, flatkv_only, test_only_dual_write); update IsValid() to
v2 values; keep v1 constants as Deprecated for migration reference
- defaults.go: change StateCommit and StateStore WriteMode defaults from
WriteModeCosmosOnly → WriteModeMemiavlOnly
- config.go: bump CurrentVersion 1 → 2
- migrate.go: register v1→v2 migration (renames cosmos_only, dual_write,
split_write in both StateCommit and StateStore WriteMode); add
SeidVersionForSchema map so each schema version is traceable to its
seid version boundary
- config_test.go: update TestWriteMode_Validity for v2 semantics
Fixes: #24
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* test: add v1→v2 migration round-trip and edge case coverage
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
* fix: address cross-review findings on v2 write mode migration
- types.go: remove WriteModeEVMOnly — never a real deployed value, had
no migration target (would fail IsValid() after migration)
- migrate.go: delete SeidVersionForSchema exported var (YAGNI — no
programmatic consumer); fold version mapping into doc comment
- validate.go: add SeverityWarning for test_only_dual_write — valid per
IsValid() to match seid's own parser, but explicitly flagged since
sei-chain marks it "CRITICAL: never deploy to production"
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments