From 7b71ab61a5a830bd4212f9c998cf7d6dc69f050d Mon Sep 17 00:00:00 2001 From: geemo Date: Wed, 29 Mar 2023 19:03:34 -0500 Subject: [PATCH] add LightClientUpdate to handle_rpc functions --- beacon_node/network/src/router.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/beacon_node/network/src/router.rs b/beacon_node/network/src/router.rs index 7f75a27fe25..af8e2e2e0a4 100644 --- a/beacon_node/network/src/router.rs +++ b/beacon_node/network/src/router.rs @@ -199,6 +199,12 @@ impl Router { Request::LightClientBootstrap(request) => self.send_beacon_processor_work( BeaconWorkEvent::lightclient_bootstrap_request(peer_id, request_id, request), ), + Request::LightClientOptimisticUpdate => self.send_beacon_processor_work( + BeaconWorkEvent::light_client_optimistic_update_request(peer_id, request_id), + ), + Request::LightClientFinalityUpdate => self.send_beacon_processor_work( + BeaconWorkEvent::light_client_finality_update_request(peer_id, request_id), + ), } } @@ -223,7 +229,10 @@ impl Router { Response::BlocksByRoot(beacon_block) => { self.on_blocks_by_root_response(peer_id, request_id, beacon_block); } - Response::LightClientBootstrap(_) => unreachable!(), + // Light client responses should not be received + Response::LightClientBootstrap(_) + | Response::LightClientOptimisticUpdate(_) + | Response::LightClientFinalityUpdate(_) => unreachable!(), } }