Skip to content

feat(consume): send slot_number in build-block payload attributes#2974

Merged
marioevz merged 1 commit into
ethereum:forks/amsterdamfrom
edg-l:build-block-pass-slotnum
Jun 10, 2026
Merged

feat(consume): send slot_number in build-block payload attributes#2974
marioevz merged 1 commit into
ethereum:forks/amsterdamfrom
edg-l:build-block-pass-slotnum

Conversation

@edg-l

@edg-l edg-l commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

get_payload_attributes() never sets slot_number, so the build-block simulator always sends slot 0 to testing_buildBlockV1. Blocks whose expected slot is non-zero can't be built, and SLOTNUM (EIP-7843) only ever gets exercised returning 0.

The expected payload already has the slot, so just forward it. The field is already on PayloadAttributes (optional, serializes as slotNumber), so no other changes needed.

Noticed while running build-block against ethrex on the Amsterdam BAL fixtures.

@edg-l edg-l marked this pull request as ready for review June 10, 2026 16:23

@marioevz marioevz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for catching this!

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.53%. Comparing base (bb030d0) to head (fcf0fe0).
⚠️ Report is 1 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #2974   +/-   ##
================================================
  Coverage            90.53%   90.53%           
================================================
  Files                  535      535           
  Lines                32893    32893           
  Branches              3021     3021           
================================================
  Hits                 29780    29780           
  Misses                2595     2595           
  Partials               518      518           
Flag Coverage Δ
unittests 90.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@marioevz marioevz merged commit 26ff8a6 into ethereum:forks/amsterdam Jun 10, 2026
23 checks passed
@edg-l edg-l deleted the build-block-pass-slotnum branch June 10, 2026 17:32
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.

2 participants