Skip to content

Conversation

@niran
Copy link
Contributor

@niran niran commented Jan 14, 2026

Summary

  • Fix base_meterBundle RPC failing with "EIP-4788 parent beacon block root missing"
  • Add parent_beacon_block_root parameter to meter_bundle() function
  • Extract parent beacon block root from flashblock base payload (CL-provided) in RPC handler, falling back to header value

Context

Pending flashblock headers may omit the parent_beacon_block_root field, but EIP-4788 requires this value for block execution. The fix prefers the CL-provided value from the flashblock base payload when available.

Test plan

  • New unit test meter_bundle_requires_parent_beacon_block_root verifies behavior with and without the root
  • All existing metering tests pass
  • Re-run flashblocks-e2e metering tests against deployed node

Cherry-pick of #481 for the v0.3.0 release.

The `base_meterBundle` RPC was failing on Cancun-activated chains with
"EIP-4788 parent beacon block root missing" because pending flashblock
headers may omit the parent_beacon_block_root field. This adds explicit
parameter passing from the flashblock base payload (CL-provided) to the
meter_bundle function, falling back to the header value if available.
@niran niran marked this pull request as ready for review January 15, 2026 02:45
@niran niran merged commit bb1b457 into releases/v0.3.0 Jan 15, 2026
29 checks passed
@niran niran deleted the fix/metering-eip4788-parent-beacon-root-v0.3.0 branch January 15, 2026 02:45
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