Skip to content

Commit 1db5572

Browse files
committed
Fix BlocksByRoot response types
1 parent ced573b commit 1db5572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beacon_node/lighthouse_network/src/rpc/codec/ssz_snappy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,12 +629,12 @@ fn handle_v2_response<T: EthSpec>(
629629
decoded_buffer,
630630
)?),
631631
)))),
632-
ForkName::Capella => Ok(Some(RPCResponse::BlocksByRange(Arc::new(
632+
ForkName::Capella => Ok(Some(RPCResponse::BlocksByRoot(Arc::new(
633633
SignedBeaconBlock::Capella(SignedBeaconBlockCapella::from_ssz_bytes(
634634
decoded_buffer,
635635
)?),
636636
)))),
637-
ForkName::Eip4844 => Ok(Some(RPCResponse::BlocksByRange(Arc::new(
637+
ForkName::Eip4844 => Ok(Some(RPCResponse::BlocksByRoot(Arc::new(
638638
SignedBeaconBlock::Eip4844(SignedBeaconBlockEip4844::from_ssz_bytes(
639639
decoded_buffer,
640640
)?),

0 commit comments

Comments
 (0)