Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] replace comet38 begin/end_block_events with finalize_block_events #1612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bryanchriswhite
Copy link

As of cometbft v0.38.x, BeginBlock and EndBlock are combined into FinalizeBlock. This has a knock-on effect through the RPC response types which has as of yet to be resolved in mainline cosmjs.

Compare cometbft/rpc/core/types.ResultBlockResults between versions v0.37.x and v0.38.x:

// ABCI results from a block
type ResultBlockResults struct {
	Height                int64                     `json:"height"`
	TxsResults            []*abci.ResponseDeliverTx `json:"txs_results"`
-	BeginBlockEvents      []abci.Event              `json:"begin_block_events"`
-	EndBlockEvents        []abci.Event              `json:"end_block_events"`
+	FinalizeBlockEvents   []abci.Event              `json:"finalize_block_events"`
	ValidatorUpdates      []abci.ValidatorUpdate    `json:"validator_updates"`
	ConsensusParamUpdates *cmtproto.ConsensusParams `json:"consensus_param_updates"`
}

@bryanchriswhite bryanchriswhite changed the title [Bugfix] refactor: replace comet38 begin/end_block_events with finalize_block_events [Bugfix] replace comet38 begin/end_block_events with finalize_block_events Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant