From 749e6cf44ed35b52e7111fdc7be4067d38e6a5f4 Mon Sep 17 00:00:00 2001 From: forcodedancing Date: Mon, 16 Oct 2023 16:29:27 +0800 Subject: [PATCH] fix: replay issue with mock app (#37) --- consensus/replay_stubs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/consensus/replay_stubs.go b/consensus/replay_stubs.go index e77ef322d..ebc1d8592 100644 --- a/consensus/replay_stubs.go +++ b/consensus/replay_stubs.go @@ -87,6 +87,11 @@ func (mock *mockProxyApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeli return *r } +func (mock *mockProxyApp) BeginBlock(req abci.RequestBeginBlock) abci.ResponseBeginBlock { + mock.txCount = 0 + return *mock.abciResponses.BeginBlock +} + func (mock *mockProxyApp) EndBlock(req abci.RequestEndBlock) abci.ResponseEndBlock { mock.txCount = 0 return *mock.abciResponses.EndBlock