From e664d407ca52a83c6a9957dc7ef2442bb5c72f39 Mon Sep 17 00:00:00 2001 From: Enrico Del Fante Date: Thu, 16 Nov 2023 17:29:16 +0100 Subject: [PATCH] Specify RPC byRoot blocks-sidecars elegibility --- specs/deneb/p2p-interface.md | 7 +++++++ specs/phase0/p2p-interface.md | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/specs/deneb/p2p-interface.md b/specs/deneb/p2p-interface.md index f7b331e84..13aadf33d 100644 --- a/specs/deneb/p2p-interface.md +++ b/specs/deneb/p2p-interface.md @@ -252,6 +252,9 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`: No more than `MAX_REQUEST_BLOCKS_DENEB` may be requested at a time. +*[Modified in Deneb:EIP4844]* +Clients SHOULD consider including a block in the response as soon as it it passes the gossip validation rules. + ##### BlobSidecarsByRoot v1 **Protocol ID:** `/eth2/beacon_chain/req/blob_sidecars_by_root/1/` @@ -300,6 +303,10 @@ Clients MUST support requesting sidecars since `minimum_request_epoch`, where `m Clients MUST respond with at least one sidecar, if they have it. Clients MAY limit the number of blocks and sidecars in the response. +Clients SHOULD consider including a sidecar in the response as soon as it passes the gossip validation rules. +Clients MUST NOT respond with sidecars that failed gossip vaildation. +Clients MUST NOT respond with sidecars related to blocks that failed `fork_choice.on_block`. + ##### BlobSidecarsByRange v1 **Protocol ID:** `/eth2/beacon_chain/req/blob_sidecars_by_range/1/` diff --git a/specs/phase0/p2p-interface.md b/specs/phase0/p2p-interface.md index a374443b8..313c56ad0 100644 --- a/specs/phase0/p2p-interface.md +++ b/specs/phase0/p2p-interface.md @@ -856,6 +856,10 @@ Clients MUST support requesting blocks since the latest finalized epoch. Clients MUST respond with at least one block, if they have it. Clients MAY limit the number of blocks in the response. +Clients CAN consider including a block in the response as soon as it it passes the gossip validation rules. +Clients MUST NOT respond with blocks that failed gossip vaildation rules. +Clients MUST NOT respond with blocks that failed `fork_choice.on_block`. + `/eth2/beacon_chain/req/beacon_blocks_by_root/1/` is deprecated. Clients MAY respond with an empty list during the deprecation transition period. ##### Ping