Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Contains all the PRs that improved the code without changing the behaviours.
- [#387](https://github.com/archway-network/archway/pull/387) - Add genmsgs module
- [#388](https://github.com/archway-network/archway/pull/388) - Add the ibc-go fee middleware
- [#389](https://github.com/archway-network/archway/pull/389) - Add v0.6 upgrade handler
- [#391](https://github.com/archway-network/archway/pull/391) - Added snapshot manager to enable state-synd for wasm

### Changed

Expand Down
10 changes: 10 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,16 @@ func NewArchwayApp(
app.SetBeginBlocker(app.BeginBlocker)
app.SetEndBlocker(app.EndBlocker)

// Register snapshot extensions to enable state-sync for wasm - must be before Loading version
if manager := app.SnapshotManager(); manager != nil {
err := manager.RegisterExtensions(
wasmdKeeper.NewWasmSnapshotter(app.CommitMultiStore(), &app.WASMKeeper),
)
if err != nil {
panic(fmt.Errorf("failed to register snapshot extension: %s", err))
}
}

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(fmt.Sprintf("failed to load latest version: %s", err))
Expand Down