diff --git a/beacon_node/lighthouse_network/src/rpc/protocol.rs b/beacon_node/lighthouse_network/src/rpc/protocol.rs index 78b357c0477..c53a307955b 100644 --- a/beacon_node/lighthouse_network/src/rpc/protocol.rs +++ b/beacon_node/lighthouse_network/src/rpc/protocol.rs @@ -379,6 +379,12 @@ impl ProtocolId { Protocol::LightClientBootstrap => match self.version { Version::V2 | Version::V1 => true, }, + Protocol::LightClientOptimisticUpdate => match self.version { + Version::V2 | Version::V1 => true, + }, + Protocol::LightClientFinalityUpdate => match self.version { + Version::V2 | Version::V1 => true, + }, Protocol::Goodbye | Protocol::Ping | Protocol::Status | Protocol::MetaData => false, } } diff --git a/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs b/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs index 9e6fe917090..33a3689efa3 100644 --- a/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs +++ b/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs @@ -12,6 +12,7 @@ use slot_clock::SlotClock; use task_executor::TaskExecutor; use tokio_stream::StreamExt; use types::{Epoch, EthSpec, Hash256, LightClientBootstrap, Slot}; +use std::sync::Arc; use super::Worker; diff --git a/beacon_node/network/src/router.rs b/beacon_node/network/src/router.rs index af8e2e2e0a4..73b71d82a00 100644 --- a/beacon_node/network/src/router.rs +++ b/beacon_node/network/src/router.rs @@ -197,7 +197,7 @@ impl Router { BeaconWorkEvent::blocks_by_roots_request(peer_id, request_id, request), ), Request::LightClientBootstrap(request) => self.send_beacon_processor_work( - BeaconWorkEvent::lightclient_bootstrap_request(peer_id, request_id, request), + BeaconWorkEvent::light_client_bootstrap_request(peer_id, request_id, request), ), Request::LightClientOptimisticUpdate => self.send_beacon_processor_work( BeaconWorkEvent::light_client_optimistic_update_request(peer_id, request_id),