Repository navigation
Added abci.RequestBeginBlock.IsProofBlock for create_empty_blocks=false - #491
TobiaszCudnik wants to merge 1 commit into
Conversation
|
Thanks for the PR @TobiaszCudnik ! There's a couple of concerns here: Nature of changeThe PR changes Relation to SDKThis change is directly dependent on impact and priority in the SDK. So we'll take their feedback into account, in particular this coment. Thanks @tac0turtle or team for weighing in here (not urgent!) PriorityWe're working at full capacity to release v0.38 (alpha) to unblock multiple teams in the ecosystem. Give us a few weeks to sort that out. Then we'll get back to you to schedule including this potentially in v0.38 or v0.39. Thanks for the patience! If this blocks anything on your side, don't hesitate to let us know. |
That is correct, only the known IDs will be parsed. Itd break if someone adds another field with the same proto ID (
Take your time, Im still figuring out the best way to test this. It would probably need a regression test for Cosmos and a regular one for Comet. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Ported from tendermint/tendermint#10004
Closes: cosmos-sdk#10240
Related to #370
This PR extends
abci.RequestBeginBlockwithIsProofBlock, used whencreate_empty_blocks=false.Main changes in:
consensus/state.goproto/tendermint/abci/types.protoThe
IsProofBlockflag is used by modules inBeginBlockmethods to avoid write ops for those blocks. "Proof blocks" happen when:"Proof block" is currently defined in
tendermint/consensus/state.go:1041:cometbft/consensus/state.go
Lines 1050 to 1060 in 24040f5
and used for
create_empty_blocksinenterNewRound:cometbft/consensus/state.go
Lines 1037 to 1047 in 24040f5
Related links
PR checklist
.changelog(we use unclog to manage our changelog)docs/orspec/) and code comments