Skip to content

Commit

Permalink
Undo response modification in commit 597363d
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Jan 6, 2023
1 parent 74bca46 commit c44738c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions beacon_node/network/src/beacon_processor/worker/rpc_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,14 +660,12 @@ impl<T: BeaconChainTypes> Worker<T> {
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!(
Expand Down

0 comments on commit c44738c

Please sign in to comment.