fix: move beacon_block_root from path to query in getExecutionPayloadEnvelope#9402
fix: move beacon_block_root from path to query in getExecutionPayloadEnvelope#9402ensi321 wants to merge 1 commit into
Conversation
…yloadEnvelope Align with beacon-APIs PR #580 which specifies beacon_block_root as a required query parameter, not a path segment, on GET /eth/v1/validator/execution_payload_envelope/{slot}. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request modifies the getExecutionPayloadEnvelope endpoint within the validator API, transitioning the beacon_block_root from a path parameter to a query parameter. The changes include updates to the URL path, request serialization and deserialization logic, and the associated validation schema. I have no feedback to provide.
Performance Report✔️ no performance regression detected Full benchmark results
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #9402 +/- ##
============================================
+ Coverage 52.46% 52.56% +0.09%
============================================
Files 848 848
Lines 62953 60937 -2016
Branches 4658 4485 -173
============================================
- Hits 33030 32031 -999
+ Misses 29855 28844 -1011
+ Partials 68 62 -6 🚀 New features to boost your workflow:
|
| beaconBlockRoot: Root; | ||
| }, | ||
| {params: {slot: Slot; beacon_block_root: string}}, | ||
| {params: {slot: Slot}; query: {beacon_block_root: string}}, |
There was a problem hiding this comment.
I think this should be changed in the spec, left a comment there ethereum/beacon-APIs#580 (comment)
There was a problem hiding this comment.
can wait til the spec settles
|
No longer relevant as the spec has changed |
Align with ethereum/beacon-APIs#580 which specifies beacon_block_root as a required query parameter, not a path segment, on
GET /eth/v1/validator/execution_payload_envelope/{slot}.