Skip to content

Commit

Permalink
go/oasis-node: Remove obsolete db section during config migration
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Nov 26, 2023
1 parent c649264 commit 6bf094b
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 6bf094b

Please sign in to comment.