@@ -374,49 +374,6 @@ p2pProtocol BeaconSync(version = 1,
374374 " 1" , peer, peer.networkState.dag, response, startSlot, reqCount,
375375 MAX_BLOBS_PER_BLOCK , MAX_REQUEST_BLOB_SIDECARS )
376376
377- # https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/deneb/p2p-interface.md#blobsidecarsbyroot-v1
378- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/p2p-interface.md#blobsidecarsbyroot-v2
379- proc blobSidecarsByRoot_v2 (
380- peer: Peer ,
381- blobIds: BlobIdentifierList ,
382- response: MultipleChunksResponse [
383- ref BlobSidecar , Limit (MAX_REQUEST_BLOB_SIDECARS_ELECTRA )])
384- {.async , libp2pProtocol (" blob_sidecars_by_root" , 2 ).} =
385- # TODO Semantically, this request should return a non-ref, but doing so
386- # runs into extreme inefficiency due to the compiler introducing
387- # hidden copies - in future nim versions with move support, this should
388- # be revisited
389- # TODO This code is more complicated than it needs to be, since the type
390- # of the multiple chunks response is not actually used in this server
391- # implementation (it's used to derive the signature of the client
392- # function, not in the code below!)
393- # TODO although you can't tell from this function definition, a magic
394- # client call that returns `seq[ref BlobSidecar]` will
395- # will be generated by the libp2p macro - we guarantee that seq items
396- # are `not-nil` in the implementation
397- getBlobSidecarsByRoot (" 2" , peer, peer.networkState.dag, response, blobIds)
398-
399- # https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/deneb/p2p-interface.md#blobsidecarsbyrange-v1
400- # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/electra/p2p-interface.md#blobsidecarsbyrange-v2
401- proc blobSidecarsByRange_v2 (
402- peer: Peer ,
403- startSlot: Slot ,
404- reqCount: uint64 ,
405- response: MultipleChunksResponse [
406- ref BlobSidecar , Limit (MAX_REQUEST_BLOB_SIDECARS_ELECTRA )])
407- {.async , libp2pProtocol (" blob_sidecars_by_range" , 2 ).} =
408- # TODO This code is more complicated than it needs to be, since the type
409- # of the multiple chunks response is not actually used in this server
410- # implementation (it's used to derive the signature of the client
411- # function, not in the code below!)
412- # TODO although you can't tell from this function definition, a magic
413- # client call that returns `seq[ref BlobSidecar]` will
414- # will be generated by the libp2p macro - we guarantee that seq items
415- # are `not-nil` in the implementation
416- getBlobSidecarsByRange (
417- " 2" , peer, peer.networkState.dag, response, startSlot, reqCount,
418- MAX_BLOBS_PER_BLOCK_ELECTRA , MAX_REQUEST_BLOB_SIDECARS_ELECTRA )
419-
420377 # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/fulu/p2p-interface.md#datacolumnsidecarsbyroot-v1
421378 proc dataColumnSidecarsByRoot (
422379 peer: Peer ,
0 commit comments