Skip to content

Return execution_optimistic correctly for reward APIs#16526

Open
syjn99 wants to merge 6 commits intoOffchainLabs:developfrom
syjn99:fix/block-rewards-optimistic-check
Open

Return execution_optimistic correctly for reward APIs#16526
syjn99 wants to merge 6 commits intoOffchainLabs:developfrom
syjn99:fix/block-rewards-optimistic-check

Conversation

@syjn99
Copy link
Contributor

@syjn99 syjn99 commented Mar 13, 2026

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

  • /eth/v1/beacon/rewards/blocks/{block_id}
  • /eth/v1/beacon/rewards/attestations/{epoch}
  • /eth/v1/beacon/rewards/sync_committee/{block_id}

Those API always check head for execution_optimistic. This PR corrects them by using the block root provided/state root.

Which issues(s) does this PR fix?

N/A

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named changelog fragment file.
  • I have added a description with sufficient context for reviewers to understand this PR.
  • I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable).

@syjn99 syjn99 changed the title Return execution_optimistic correctly for block reward API Return execution_optimistic correctly for reward APIs Mar 13, 2026
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