Skip to content

Commit 7d0a8c6

Browse files
EIP-7732: Modify ExecutionPayloadEnvelopeByRoot
1 parent 13ac373 commit 7d0a8c6

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

configs/mainnet.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,6 @@ CUSTODY_REQUIREMENT: 4
170170
# [New in Electra:EIP7251]
171171
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)
172172
MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000 # 2**8 * 10**9 (= 256,000,000,000)
173+
174+
# EIP7732
175+
MAX_REQUEST_PAYLOADS: 128

configs/minimal.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,6 @@ CUSTODY_REQUIREMENT: 4
169169
# [New in Electra:EIP7251]
170170
MIN_PER_EPOCH_CHURN_LIMIT_ELECTRA: 64000000000 # 2**6 * 10**9 (= 64,000,000,000)
171171
MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)
172+
173+
# EIP7732
174+
MAX_REQUEST_PAYLOADS: 128

specs/_features/eip7732/p2p-interface.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This document contains the consensus-layer networking specification for EIP7732.
2323
- [BeaconBlocksByRange v3](#beaconblocksbyrange-v3)
2424
- [BeaconBlocksByRoot v3](#beaconblocksbyroot-v3)
2525
- [BlobSidecarsByRoot v2](#blobsidecarsbyroot-v2)
26-
- [ExecutionPayloadEnvelopeByRoot v1](#executionpayloadenvelopebyroot-v1)
26+
- [ExecutionPayloadEnvelopesByRoot v1](#executionpayloadenvelopesbyroot-v1)
2727

2828
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2929

@@ -37,6 +37,14 @@ This document contains the consensus-layer networking specification for EIP7732.
3737
|------------------------------------------|-----------------------------------|---------------------------------------------------------------------|
3838
| `KZG_COMMITMENT_INCLUSION_PROOF_DEPTH_EIP7732` | `13` # TODO: Compute it when the spec stabilizes | Merkle proof depth for the `blob_kzg_commitments` list item |
3939

40+
### Configuration
41+
42+
*[Modified in EIP-7732]*
43+
44+
| Name | Value | Description |
45+
|------------------------------------------|-----------------------------------|---------------------------------------------------------------------|
46+
| `MAX_REQUEST_PAYLOADS` | `2**7` (= 128) | Maximum number of execution payload envelopes in a single request |
47+
4048

4149
### Containers
4250

@@ -225,9 +233,9 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
225233
| `EIP7732_FORK_VERSION` | `eip7732.BlobSidecar` |
226234

227235

228-
##### ExecutionPayloadEnvelopeByRoot v1
236+
##### ExecutionPayloadEnvelopesByRoot v1
229237

230-
**Protocol ID:** `/eth2/beacon_chain/req/execution_payload_envelope_by_root/1/`
238+
**Protocol ID:** `/eth2/beacon_chain/req/execution_payload_envelopes_by_root/1/`
231239

232240
The `<context-bytes>` field is calculated as `context = compute_fork_digest(fork_version, genesis_validators_root)`:
233241

@@ -241,22 +249,22 @@ Request Content:
241249

242250
```
243251
(
244-
List[Root, MAX_REQUEST_PAYLOAD]
252+
List[Root, MAX_REQUEST_PAYLOADS]
245253
)
246254
```
247255

248256
Response Content:
249257

250258
```
251259
(
252-
List[SignedExecutionPayloadEnvelope, MAX_REQUEST_PAYLOAD]
260+
List[SignedExecutionPayloadEnvelope, MAX_REQUEST_PAYLOADS]
253261
)
254262
```
255-
Requests execution payload envelope by `signed_execution_payload_envelope.message.block_root`. The response is a list of `SignedExecutionPayloadEnvelope` whose length is less than or equal to the number of requested execution payload envelopes. It may be less in the case that the responding peer is missing payload envelopes.
263+
Requests execution payload envelopes by `signed_execution_payload_envelope.message.block_root`. The response is a list of `SignedExecutionPayloadEnvelope` whose length is less than or equal to the number of requested execution payload envelopes. It may be less in the case that the responding peer is missing payload envelopes.
256264

257-
No more than `MAX_REQUEST_PAYLOAD` may be requested at a time.
265+
No more than `MAX_REQUEST_PAYLOADS` may be requested at a time.
258266

259-
ExecutionPayloadEnvelopeByRoot is primarily used to recover recent execution payload envelope (e.g. when receiving a payload attestation with revealed status as true but never received a payload).
267+
ExecutionPayloadEnvelopesByRoot is primarily used to recover recent execution payload envelopes (e.g. when receiving a payload attestation with revealed status as true but never received a payload).
260268

261269
The request MUST be encoded as an SSZ-field.
262270

0 commit comments

Comments
 (0)