Skip to content

test(chain-gen): add block.size regression test for #1451#2145

Merged
kderme merged 1 commit into
masterfrom
test/block-size-regression
Jun 25, 2026
Merged

test(chain-gen): add block.size regression test for #1451#2145
kderme merged 1 commit into
masterfrom
test/block-size-regression

Conversation

@ArturWieczorek

Copy link
Copy Markdown
Contributor

Closes #1451

Guards Era/Shelley/Generic/Block.hs blockSize against regressing from pHeaderBlockSize (full block size) back to pHeaderSize (header only), the bug behind #1451. Forges an empty block and a block with chained payment txs, then asserts the tx-bearing block records a larger block.size.

Description

Add your description here, if it fixes a particular issue please provide a link to the issue.

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • N/A Any changes are noted in the changelog
  • Code is formatted with fourmolu on version 0.17.0.0 (which can be run with scripts/fourmolize.sh)
  • Self-reviewed the diff

Migrations

  • The pr causes a breaking change of type a,b or c
  • If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible
  • Resyncing and running the migrations provided will result in the same database semantically

If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.

Guards Era/Shelley/Generic/Block.hs blockSize against regressing from
pHeaderBlockSize (full block size) back to pHeaderSize (header only), the
bug behind #1451. Forges an empty block and a block with chained payment
txs, then asserts the tx-bearing block records a larger block.size.
@ArturWieczorek ArturWieczorek marked this pull request as ready for review June 25, 2026 12:08
@ArturWieczorek ArturWieczorek requested a review from a team as a code owner June 25, 2026 12:08
@kderme kderme merged commit 5c99b63 into master Jun 25, 2026
21 checks passed
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.

Wrong block size

2 participants