Skip to content

Commit

Permalink
added context bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeemoCandama committed Mar 30, 2023
1 parent 7b71ab6 commit 74cdb2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions beacon_node/lighthouse_network/src/rpc/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion beacon_node/network/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl<T: BeaconChainTypes> Router<T> {
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),
Expand Down

0 comments on commit 74cdb2e

Please sign in to comment.