save state after making changes during sync

This commit is contained in:
Callum Waters
2021-08-03 10:20:29 +02:00
parent 5682dd55f9
commit 64fb13a561
2 changed files with 20 additions and 11 deletions

View File

@@ -565,7 +565,8 @@ func (n *nodeImpl) OnStart() error {
// the state, can call `InitChain` if this is the first time that the
// application has run and replays any blocks as necessary to sync
// tendermint with the app. We do all this before starting any other service
state, err = syncWithApplication(n.stateStore, n.blockStore, n.genesisDoc, state, n.eventBus, n.proxyApp, n.stateSync, n.Logger)
err = syncWithApplication(n.stateStore, n.blockStore, n.genesisDoc, state,
n.eventBus, n.proxyApp, n.stateSync, n.Logger)
if err != nil {
return err
}