Skip to content

fix(consensus): reject gossiped commits with more than MaxVotesCount … - #54

Open
fridrik01 wants to merge 1 commit into
bera-v1.xfrom
fix-consensus-commit-sig-count-cap
Open

fix(consensus): reject gossiped commits with more than MaxVotesCount …#54
fridrik01 wants to merge 1 commit into
bera-v1.xfrom
fix-consensus-commit-sig-count-cap

Conversation

@fridrik01

@fridrik01 fridrik01 commented Jul 24, 2026

Copy link
Copy Markdown

This PR caps the number of signatures in gossiped CommitMessage at types.MaxVotesCount, rejecting oversized commits in ValidateBasic and disconnecting the peer. This prevents a peer from sending a ~1MB height-zero commit with hundreds of thousands of absent signatures.

@fridrik01 fridrik01 self-assigned this Jul 24, 2026
@fridrik01
fridrik01 force-pushed the fix-consensus-commit-sig-count-cap branch from d717665 to a7c811f Compare July 24, 2026 12:36
@fridrik01
fridrik01 force-pushed the fix-consensus-commit-sig-count-cap branch from a7c811f to ab1bb7a Compare August 6, 2026 15:27
@fridrik01
fridrik01 marked this pull request as ready for review August 6, 2026 15:27
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