Skip to content

Commit

Permalink
fix: replay issue with mock app (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing authored Oct 16, 2023
1 parent a930c65 commit 749e6cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions consensus/replay_stubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 749e6cf

Please sign in to comment.