diff --git a/internal/consensus/replay.go b/internal/consensus/replay.go index 60ad0c041..c687dcbf5 100644 --- a/internal/consensus/replay.go +++ b/internal/consensus/replay.go @@ -419,7 +419,7 @@ func (h *Handshaker) ReplayBlocks( case appBlockHeight == storeBlockHeight: // We ran Commit, but didn't save the state, so replayBlock with mock app. - abciResponses, err := h.stateStore.LoadABCIResponses(storeBlockHeight) + abciResponses, err := h.stateStore.LoadLastABCIResponse(storeBlockHeight) if err != nil { return nil, err } diff --git a/internal/consensus/replay_stubs.go b/internal/consensus/replay_stubs.go index 1235baccb..3dd93c23c 100644 --- a/internal/consensus/replay_stubs.go +++ b/internal/consensus/replay_stubs.go @@ -54,7 +54,7 @@ func (emptyMempool) CloseWAL() {} // Useful because we don't want to call Commit() twice for the same block on // the real app. -func newMockProxyApp(appHash []byte, abciResponses *tmstate.ABCIResponses) proxy.AppConnConsensus { +func newMockProxyApp(appHash []byte, abciResponses *tmstate.ABCIResponsesInfo) proxy.AppConnConsensus { clientCreator := abciclient.NewLocalCreator(&mockProxyApp{ appHash: appHash, abciResponses: abciResponses, diff --git a/internal/state/store.go b/internal/state/store.go index 641648a7a..4e6a22ec6 100644 --- a/internal/state/store.go +++ b/internal/state/store.go @@ -90,6 +90,8 @@ type Store interface { LoadValidators(int64) (*types.ValidatorSet, error) // LoadABCIResponses loads the abciResponse for a given height LoadABCIResponses(int64) (*tmstate.ABCIResponses, error) + //LoadLastABCIResponse loads the last abciResponse for a given height + LoadLastABCIResponse(int64) (*tmstate.ABCIResponsesInfo, error) // LoadConsensusParams loads the consensus params for a given height LoadConsensusParams(int64) (types.ConsensusParams, error) // Save overwrites the previous state with the updated one