Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 578702c

Browse files
melekesforcodedancingandynog
authoredDec 14, 2023
consensus: return last saved BeginBlock, not a empty one (#1783)
Otherwise, the events from app's BeginBlock won't be fired. Closes celestiaorg#1468 Co-authored-by: forcodedancing <[email protected]> Co-authored-by: Andy Nogueira <[email protected]>
1 parent ef38da4 commit 578702c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎consensus/replay_stubs.go

+4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ type mockProxyApp struct {
7777
abciResponses *cmtstate.ABCIResponses
7878
}
7979

80+
func (mock *mockProxyApp) BeginBlock(req abci.RequestBeginBlock) abci.ResponseBeginBlock {
81+
return *mock.abciResponses.BeginBlock
82+
}
83+
8084
func (mock *mockProxyApp) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx {
8185
r := mock.abciResponses.DeliverTxs[mock.txCount]
8286
mock.txCount++

0 commit comments

Comments
 (0)
Please sign in to comment.