Skip to content

Commit f3bd42c

Browse files
committed
PR reviews
1 parent 3a67dcd commit f3bd42c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ fn context_bytes<E: EthSpec>(
423423
| RPCResponse::BlobsByRoot(_)
424424
| RPCResponse::DataColumnsByRoot(_)
425425
| RPCResponse::DataColumnsByRange(_) => {
426+
// TODO(das): If DataColumnSidecar is defined as an Electra type, update the
427+
// context bytes to point to ForkName::Electra
426428
return fork_context.to_context_bytes(ForkName::Deneb);
427429
}
428430
RPCResponse::LightClientBootstrap(lc_bootstrap) => {

beacon_node/lighthouse_network/src/rpc/protocol.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ impl SupportedProtocol {
401401
ProtocolId::new(SupportedProtocol::BlobsByRangeV1, Encoding::SSZSnappy),
402402
]);
403403
}
404-
if fork_context.spec.peerdas_scheduled() {
404+
if fork_context.spec.is_peer_das_scheduled() {
405405
supported.extend_from_slice(&[
406406
ProtocolId::new(SupportedProtocol::DataColumnsByRootV1, Encoding::SSZSnappy),
407407
ProtocolId::new(SupportedProtocol::DataColumnsByRangeV1, Encoding::SSZSnappy),

0 commit comments

Comments
 (0)