Undo response modification in commit 597363d2f
This commit is contained in:
parent
74bca46fc2
commit
c44738c77b
@ -660,14 +660,12 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
for root in block_roots {
|
for root in block_roots {
|
||||||
match self.chain.get_blobs(&root) {
|
match self.chain.get_blobs(&root) {
|
||||||
Ok(Some(blobs)) => {
|
Ok(Some(blobs)) => {
|
||||||
if blobs.blobs.len() > 0 {
|
blobs_sent += 1;
|
||||||
blobs_sent += 1;
|
self.send_network_message(NetworkMessage::SendResponse {
|
||||||
self.send_network_message(NetworkMessage::SendResponse {
|
peer_id,
|
||||||
peer_id,
|
response: Response::BlobsByRange(Some(Arc::new(blobs))),
|
||||||
response: Response::BlobsByRange(Some(Arc::new(blobs))),
|
id: request_id,
|
||||||
id: request_id,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Ok(None) => {
|
Ok(None) => {
|
||||||
error!(
|
error!(
|
||||||
|
Loading…
Reference in New Issue
Block a user