Skip to content

Commit

Permalink
Merge pull request #5474 from oasisprotocol/kostko/stable/23.0.x/back…
Browse files Browse the repository at this point in the history
…port-5473

[BACKPORT/23.0.x] go/oasis-node: Remove obsolete db section during config migration
  • Loading branch information
kostko authored Nov 26, 2023
2 parents c649264 + 6bf094b commit 23652ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/5473.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/oasis-node: Remove obsolete db section during config migration
3 changes: 3 additions & 0 deletions go/oasis-node/cmd/config/migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ func doMigrateConfig(cmd *cobra.Command, args []string) {
m(newCfg["consensus"])["prune"] = prune
delete(m(m(tendermint)["abci"]), "prune")
}
} else if k == "db" {
logger.Info("consensus.db.* is no longer needed")
delete(m(tendermint), "db")
} else {
m(newCfg["consensus"])[k] = v
delete(m(tendermint), k)
Expand Down
2 changes: 2 additions & 0 deletions go/oasis-node/cmd/config/migrate/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ consensus:
upstream_address:
- "[email protected]:5678"
mode: full
db:
backend: badger
# Validators behind sentry nodes should set sentries as persistent peers.
p2p:
Expand Down

0 comments on commit 23652ad

Please sign in to comment.