Skip to content

Commit

Permalink
fix: snapshot db remove hardcoding (#514)
Browse files Browse the repository at this point in the history
* removing hardcode of snapshot db backend

* Update CHANGELOG.md
  • Loading branch information
spoo-bar authored Dec 1, 2023
1 parent f75897a commit 28cd116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Contains all the PRs that improved the code without changing the behaviours.
### Added

- [#481](https://github.com/archway-network/archway/pull/481) - Add Release Checklist issue type
- [](https://github.com/archway-network/archway/pull/502) - Improve rewards withdrawal experience by allowing a Metadata owner to set that rewards directly go to the reward address.
- [#502](https://github.com/archway-network/archway/pull/502) - Improve rewards withdrawal experience by allowing a Metadata owner to set that rewards directly go to the reward address.
- [#504](https://github.com/archway-network/archway/pull/504) - Interchain test gh workflow now runs on PRs targetting release branches as well as main
- [#462](https://github.com/archway-network/archway/pull/462) - adding docs ADR-008 – Improvements on rewards withdrawal experience

Expand All @@ -53,6 +53,7 @@ Contains all the PRs that improved the code without changing the behaviours.
### Fixed

- [#476](https://github.com/archway-network/archway/pull/476) - Fix amd64 binary compatibility on newer linux OS
- [#514](https://github.com/archway-network/archway/pull/514) - Fix snapshot db being hardcoded from goleveldb to based on config

### Improvements

Expand Down
2 changes: 1 addition & 1 deletion cmd/archwayd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (ac appCreator) newApp(
}

snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots")
snapshotDB, err := dbm.NewDB("metadata", dbm.GoLevelDBBackend, snapshotDir)
snapshotDB, err := dbm.NewDB("metadata", server.GetAppDBBackend(appOpts), snapshotDir)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 28cd116

Please sign in to comment.