Skip to content

Commit 9b8556f

Browse files
committed
Add BeaconBlocksByRange v3
1 parent a3a6c91 commit 9b8556f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

specs/electra/p2p-interface.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ The specification of these changes continues in the same format as the network s
1616
- [Global topics](#global-topics)
1717
- [`beacon_aggregate_and_proof`](#beacon_aggregate_and_proof)
1818
- [`beacon_attestation_{subnet_id}`](#beacon_attestation_subnet_id)
19+
- [The Req/Resp domain](#the-reqresp-domain)
20+
- [Messages](#messages)
21+
- [BeaconBlocksByRange v3](#beaconblocksbyrange-v3)
1922

2023
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2124
<!-- /TOC -->
@@ -57,3 +60,33 @@ The following convenience variables are re-defined
5760
The following validations are added:
5861
* [REJECT] `len(committee_indices) == 1`, where `committee_indices = get_committee_indices(attestation)`.
5962
* [REJECT] `attestation.data.index == 0`
63+
64+
## The Req/Resp domain
65+
66+
### Messages
67+
68+
#### BeaconBlocksByRange v3
69+
70+
**Protocol ID:** `/eth2/beacon_chain/req/beacon_blocks_by_range/3/`
71+
72+
Request Content:
73+
```
74+
(
75+
block_root: Root
76+
start_slot: Slot
77+
count: uint64
78+
)
79+
```
80+
81+
Response Content:
82+
```
83+
(
84+
List[SignedBeaconBlock, MAX_REQUEST_BLOCKS]
85+
)
86+
```
87+
88+
Extends behaviour of BeaconBlocksByRange v2 as defined in [the altair p2p spec](../altair/p2p-interface.md).
89+
90+
Requests beacon blocks in the slot range `[start_slot, start_slot + count)`, leading up to `block_root`. If the block with `block_root` is unknown the responder MUST respond with `3: ResourceUnavailable`. If the slot of the block with `block_root` is less than `start_slot` the responder MUST respond with `1: InvalidRequest`.
91+
92+

0 commit comments

Comments
 (0)