Skip to content

feat: consensus protobuf upgrade + refactor#3365

Merged
vbar merged 1 commit intomainfrom
vbar/consensus-protobuf-upgrade
Apr 28, 2026
Merged

feat: consensus protobuf upgrade + refactor#3365
vbar merged 1 commit intomainfrom
vbar/consensus-protobuf-upgrade

Conversation

@vbar
Copy link
Copy Markdown
Contributor

@vbar vbar commented Apr 27, 2026

Following current https://github.com/starknet-io/starknet-p2p-specs/blob/main/p2p/proto/consensus/consensus.proto ,
folding ProposalPart::BlockInfo into ProposalInit and ExecutedTransactionCount into ProposalFin.

Fixes #3338 .

Comment thread crates/validator/src/lib.rs
Comment thread crates/pathfinder/src/consensus/inner/p2p_task.rs
Copy link
Copy Markdown
Contributor

@CHr15F0x CHr15F0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I've initially been wondering about fin_payload but looks like we don't need to validate it if it appears, cause the proposal_commitment is sufficient.

The only question is: what if somebody does provide that field and it contains invalid commitments while the final proposal commitment is correct 🤔 . Do we just ignore it (as now) or treat it as malicious behavior?

@vbar
Copy link
Copy Markdown
Contributor Author

vbar commented Apr 28, 2026

The only question is: what if somebody does provide that field and it contains invalid commitments while the final proposal commitment is correct 🤔 . Do we just ignore it (as now) or treat it as malicious behavior?

IMHO we should ask why it's there & when it's set, and if it looks like it's going to stay, handle it in a follow-up issue...

@vbar vbar merged commit 6a13617 into main Apr 28, 2026
11 checks passed
@vbar vbar deleted the vbar/consensus-protobuf-upgrade branch April 28, 2026 12:39
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.

feat(consensus): align pathfinder implementation with the latest proto spec

2 participants