From c6479444c2b87e3c61e21edbd43154e08f6fb43d Mon Sep 17 00:00:00 2001 From: realbigsean Date: Wed, 18 Jan 2023 18:01:46 -0500 Subject: [PATCH] don't send errors when we *correctly* don't have blobs --- .../beacon_processor/worker/rpc_methods.rs | 23 ------------------- 1 file changed, 23 deletions(-) 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 8888e6f9f..aff0c7651 100644 --- a/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs +++ b/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs @@ -258,14 +258,6 @@ impl Worker { "request_root" => ?root, "finalized_data_availability_boundary" => finalized_data_availability_boundary, ); - self.send_error_response( - peer_id, - RPCResponseErrorCode::ResourceUnavailable, - "Blobs unavailable".into(), - request_id, - ); - send_response = false; - break; } else { debug!( self.log, @@ -275,15 +267,7 @@ impl Worker { "request_root" => ?root, "finalized_data_availability_boundary" => finalized_data_availability_boundary, ); - self.send_error_response( - peer_id, - RPCResponseErrorCode::ResourceUnavailable, - "Blobs unavailable".into(), - request_id, - ); } - send_response = false; - break; } Ok((None, Some(_))) => { debug!( @@ -753,13 +737,6 @@ impl Worker { "No blobs or block in the store for block root"; "block_root" => ?root ); - self.send_error_response( - peer_id, - RPCResponseErrorCode::ResourceUnavailable, - "Blobs unavailable".into(), - request_id, - ); - send_response = false; break; } Err(BeaconChainError::BlobsUnavailable) => {