From 752c784534f83cbb6dbb8f6d29d0f50fe3fdf8f7 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Tue, 19 Mar 2019 14:40:08 +1100 Subject: [PATCH] Initial handling of RPC HELLO requests --- beacon_node/network/src/message_handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_node/network/src/message_handler.rs b/beacon_node/network/src/message_handler.rs index a685e3324..f1a114db1 100644 --- a/beacon_node/network/src/message_handler.rs +++ b/beacon_node/network/src/message_handler.rs @@ -129,7 +129,7 @@ impl MessageHandler { fn handle_rpc_request(&mut self, peer_id: PeerId, id: u64, request: RPCRequest) { match request { RPCRequest::Hello(hello_message) => { - self.handle_hello_response(peer_id, id, hello_message) + // self.handle_hello_request(peer_id, id, hello_message) } } } @@ -146,6 +146,7 @@ impl MessageHandler { debug!(self.log, "Hello response received from peer: {:?}", peer_id); // validate peer - decide whether to drop/ban or add to sync + // TODO: Peer validation } /// Sends a HELLO RPC request to a newly connected peer.