Skip to content

Commit db71770

Browse files
committed
Move to peerdas eip
1 parent f25aac6 commit db71770

File tree

2 files changed

+36
-42
lines changed

2 files changed

+36
-42
lines changed

specs/_features/eip7594/p2p-interface.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [`verify_data_column_sidecar_kzg_proofs`](#verify_data_column_sidecar_kzg_proofs)
1818
- [`verify_data_column_sidecar_inclusion_proof`](#verify_data_column_sidecar_inclusion_proof)
1919
- [`compute_subnet_for_data_column_sidecar`](#compute_subnet_for_data_column_sidecar)
20+
- [MetaData](#metadata)
2021
- [The gossip domain: gossipsub](#the-gossip-domain-gossipsub)
2122
- [Topics and messages](#topics-and-messages)
2223
- [Blob subnets](#blob-subnets)
@@ -26,6 +27,7 @@
2627
- [Messages](#messages)
2728
- [DataColumnSidecarsByRoot v1](#datacolumnsidecarsbyroot-v1)
2829
- [DataColumnSidecarsByRange v1](#datacolumnsidecarsbyrange-v1)
30+
- [GetMetaData v3](#getmetadata-v3)
2931
- [The discovery domain: discv5](#the-discovery-domain-discv5)
3032
- [ENR structure](#enr-structure)
3133
- [Custody subnet count](#custody-subnet-count)
@@ -110,6 +112,24 @@ def compute_subnet_for_data_column_sidecar(column_index: ColumnIndex) -> SubnetI
110112
return SubnetID(column_index % DATA_COLUMN_SIDECAR_SUBNET_COUNT)
111113
```
112114

115+
### MetaData
116+
117+
The `MetaData` stored locally by clients is updated with an additional field to communicate the custody subnet count.
118+
119+
```
120+
(
121+
seq_number: uint64
122+
attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
123+
syncnets: Bitvector[SYNC_COMMITTEE_SUBNET_COUNT]
124+
custody_subnet_count: uint64
125+
)
126+
```
127+
128+
Where
129+
130+
- `seq_number`, `attnets`, and `syncnets` have the same meaning defined in the Altair document.
131+
- `custody_subnet_count` represents the node's custody subnet count. Clients MAY reject ENRs with a value less than `CUSTODY_REQUIREMENT`.
132+
113133
### The gossip domain: gossipsub
114134

115135
Some gossip meshes are upgraded in the EIP-7594 fork to support upgraded types.
@@ -280,6 +300,22 @@ Clients MUST respond with data column sidecars that are consistent from a single
280300

281301
After the initial data column sidecar, clients MAY stop in the process of responding if their fork choice changes the view of the chain in the context of the request.
282302

303+
##### GetMetaData v3
304+
305+
**Protocol ID:** `/eth2/beacon_chain/req/metadata/3/`
306+
307+
No Request Content.
308+
309+
Response Content:
310+
311+
```
312+
(
313+
MetaData
314+
)
315+
```
316+
317+
Requests the MetaData of a peer, using the new `MetaData` definition given above that is extended from Altair. Other conditions for the `GetMetaData` protocol are unchanged from the Altair p2p networking document.
318+
283319
### The discovery domain: discv5
284320

285321
#### ENR structure

specs/electra/p2p-interface.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,17 @@ The specification of these changes continues in the same format as the network s
1111
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
1212

1313
- [Modifications in Electra](#modifications-in-electra)
14-
- [MetaData](#metadata)
1514
- [The gossip domain: gossipsub](#the-gossip-domain-gossipsub)
1615
- [Topics and messages](#topics-and-messages)
1716
- [Global topics](#global-topics)
1817
- [`beacon_aggregate_and_proof`](#beacon_aggregate_and_proof)
1918
- [`beacon_attestation_{subnet_id}`](#beacon_attestation_subnet_id)
20-
- [The Req/Resp domain](#the-reqresp-domain)
21-
- [Messages](#messages)
22-
- [GetMetaData v3](#getmetadata-v3)
2319

2420
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2521
<!-- /TOC -->
2622

2723
## Modifications in Electra
2824

29-
### MetaData
30-
31-
The `MetaData` stored locally by clients is updated with an additional field to communicate the custody subnet count.
32-
33-
```
34-
(
35-
seq_number: uint64
36-
attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
37-
syncnets: Bitvector[SYNC_COMMITTEE_SUBNET_COUNT]
38-
custody_subnet_count: uint64
39-
)
40-
```
41-
42-
Where
43-
44-
- `seq_number`, `attnets`, and `syncnets` have the same meaning defined in the Altair document.
45-
- `custody_subnet_count` represents the node's custody subnet count. Clients MAY reject ENRs with a value less than `CUSTODY_REQUIREMENT`.
46-
4725
### The gossip domain: gossipsub
4826

4927
Some gossip meshes are upgraded in the fork of Electra to support upgraded types.
@@ -79,23 +57,3 @@ The following convenience variables are re-defined
7957
The following validations are added:
8058
* [REJECT] `len(committee_indices) == 1`, where `committee_indices = get_committee_indices(attestation)`.
8159
* [REJECT] `attestation.data.index == 0`
82-
83-
### The Req/Resp domain
84-
85-
#### Messages
86-
87-
##### GetMetaData v3
88-
89-
**Protocol ID:** `/eth2/beacon_chain/req/metadata/3/`
90-
91-
No Request Content.
92-
93-
Response Content:
94-
95-
```
96-
(
97-
MetaData
98-
)
99-
```
100-
101-
Requests the MetaData of a peer, using the new `MetaData` definition given above that is extended from Altair. Other conditions for the `GetMetaData` protocol are unchanged from the Altair p2p networking document.

0 commit comments

Comments
 (0)