Skip to content

fix(consensus/reactor): reject oversized proposals (#5324)#9

Merged
peternose merged 1 commit into
v0.37.18-oasisfrom
peternose/bugfix/backport-5324
Jun 17, 2026
Merged

fix(consensus/reactor): reject oversized proposals (#5324)#9
peternose merged 1 commit into
v0.37.18-oasisfrom
peternose/bugfix/backport-5324

Conversation

@peternose

Copy link
Copy Markdown

Updates the consensus reactor to validate that a received proposal will not contain more parts than the amount of chunks that it would take to build a block whos size is equal to ConsensusParams.Block.MaxBytes.

Original PR is here cometbft#5309, but reopened since the contributor stopped replying.

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

---
Updates the consensus reactor to validate that a received proposal will
not contain more parts than the amount of chunks that it would take to
build a block whos size is equal to `ConsensusParams.Block.MaxBytes`.

Original PR is here cometbft#5309, but
reopened since the contributor stopped replying.

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: arsushi <richie@asymmetric.re>
Co-authored-by: Abdul Malek <me@almk.dev>
Co-authored-by: Matt Acciai <matt@skip.money>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Tyler <48813565+technicallyty@users.noreply.github.com>
Co-authored-by: maradini77 <140460067+maradini77@users.noreply.github.com>
@peternose peternose force-pushed the peternose/bugfix/backport-5324 branch from 27be118 to c4060ce Compare June 17, 2026 07:16
@peternose peternose requested a review from kostko June 17, 2026 07:30
@peternose peternose merged commit d106e24 into v0.37.18-oasis Jun 17, 2026
10 of 15 checks passed
@peternose peternose deleted the peternose/bugfix/backport-5324 branch June 17, 2026 07: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.

3 participants