diff --git a/state/store.go b/state/store.go index 0550bd3f0f9..a5a311a6186 100644 --- a/state/store.go +++ b/state/store.go @@ -100,7 +100,9 @@ func saveState(db dbm.DB, state State, key []byte) { nextHeight := state.LastBlockHeight + 1 saveValidatorsInfo(db, nextHeight, state.LastHeightValidatorsChanged, state.Validators) saveConsensusParamsInfo(db, nextHeight, state.LastHeightConsensusParamsChanged, state.ConsensusParams) - db.SetSync(stateKey, state.Bytes()) + //////////////////// iris/tendermint begin /////////////////////////// + db.SetSync(key, state.Bytes()) + //////////////////// iris/tendermint end /////////////////////////// } //------------------------------------------------------------------------