Commit b48f63b
committed
feat: hash executionRequestsRoot with gloas container in gloas paths
The gloas bid and envelope carry an `ExecutionRequests` extended with
`builder_deposits` (0x03) and `builder_exits` (0x04) per
ethereum/consensus-specs#5359. Using `ssz.electra.ExecutionRequests.hashTreeRoot`
in the gloas-only code paths produced a root over the electra-shaped
container — wrong even when both builder lists are empty, because the
gloas container has two additional zero-hash leaves.
Switch the four gloas-only call sites to `ssz.gloas.ExecutionRequests`:
* `produceBlockBody.ts` self-build bid construction
* `verifyExecutionPayloadEnvelope.ts` bid↔envelope cross-check
* `executionPayloadEnvelope.ts` gossip validation
* `upgradeStateToGloas.ts` genesis bid default-value root
Refs: ethereum/consensus-specs#5359, ethereum/EIPs#11760
🤖 Generated with AI assistance1 parent 52d2b0a commit b48f63b
4 files changed
Lines changed: 5 additions & 5 deletions
File tree
- packages
- beacon-node/src/chain
- blocks
- produceBlock
- validation
- state-transition/src/slot
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments