From c44738c77b92905f3631fd8a918ae6e3e37789c7 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Fri, 6 Jan 2023 12:42:21 +0100 Subject: [PATCH] Undo response modification in commit 597363d2f --- .../src/beacon_processor/worker/rpc_methods.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 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 f0c5addbe30..f08ffe1e61e 100644 --- a/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs +++ b/beacon_node/network/src/beacon_processor/worker/rpc_methods.rs @@ -660,14 +660,12 @@ impl Worker { for root in block_roots { match self.chain.get_blobs(&root) { Ok(Some(blobs)) => { - if blobs.blobs.len() > 0 { - blobs_sent += 1; - self.send_network_message(NetworkMessage::SendResponse { - peer_id, - response: Response::BlobsByRange(Some(Arc::new(blobs))), - id: request_id, - }); - } + blobs_sent += 1; + self.send_network_message(NetworkMessage::SendResponse { + peer_id, + response: Response::BlobsByRange(Some(Arc::new(blobs))), + id: request_id, + }); } Ok(None) => { error!(