Skip to content

Commit a95195b

Browse files
authored
Merge pull request #3890 from StefanBratanov/eip_7732_modify
EIP-7732: Modify `ExecutionPayloadEnvelopeByRoot`
2 parents 0dd76d3 + ba99f8b commit a95195b

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

configs/mainnet.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: 128000000000 # 2**7 * 10**9 (= 128,000,000,000)
171171
MAX_PER_EPOCH_ACTIVATION_EXIT_CHURN_LIMIT: 256000000000 # 2**8 * 10**9 (= 256,000,000,000)
172+
173+
# EIP7732
174+
MAX_REQUEST_PAYLOADS: 128

configs/minimal.yaml

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

specs/_features/eip7732/p2p-interface.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This document contains the consensus-layer networking specification for EIP7732.
77

88
- [Modification in EIP-7732](#modification-in-eip-7732)
99
- [Preset](#preset)
10+
- [Configuration](#configuration)
1011
- [Containers](#containers)
1112
- [`BlobSidecar`](#blobsidecar)
1213
- [Helpers](#helpers)
@@ -23,7 +24,7 @@ This document contains the consensus-layer networking specification for EIP7732.
2324
- [BeaconBlocksByRange v3](#beaconblocksbyrange-v3)
2425
- [BeaconBlocksByRoot v3](#beaconblocksbyroot-v3)
2526
- [BlobSidecarsByRoot v2](#blobsidecarsbyroot-v2)
26-
- [ExecutionPayloadEnvelopeByRoot v1](#executionpayloadenvelopebyroot-v1)
27+
- [ExecutionPayloadEnvelopesByRoot v1](#executionpayloadenvelopesbyroot-v1)
2728

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

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

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

4150
### Containers
4251

@@ -225,9 +234,9 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
225234
| `EIP7732_FORK_VERSION` | `eip7732.BlobSidecar` |
226235

227236

228-
##### ExecutionPayloadEnvelopeByRoot v1
237+
##### ExecutionPayloadEnvelopesByRoot v1
229238

230-
**Protocol ID:** `/eth2/beacon_chain/req/execution_payload_envelope_by_root/1/`
239+
**Protocol ID:** `/eth2/beacon_chain/req/execution_payload_envelopes_by_root/1/`
231240

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

@@ -241,22 +250,22 @@ Request Content:
241250

242251
```
243252
(
244-
List[Root, MAX_REQUEST_PAYLOAD]
253+
List[Root, MAX_REQUEST_PAYLOADS]
245254
)
246255
```
247256

248257
Response Content:
249258

250259
```
251260
(
252-
List[SignedExecutionPayloadEnvelope, MAX_REQUEST_PAYLOAD]
261+
List[SignedExecutionPayloadEnvelope, MAX_REQUEST_PAYLOADS]
253262
)
254263
```
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.
264+
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.
256265

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

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).
268+
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).
260269

261270
The request MUST be encoded as an SSZ-field.
262271

0 commit comments

Comments
 (0)