don't send errors when we *correctly* don't have blobs

This commit is contained in:
realbigsean
2023-01-18 18:01:46 -05:00
committed by Emilia Hane
parent e1ce4e5b78
commit c6479444c2

View File

@@ -258,14 +258,6 @@ impl<T: BeaconChainTypes> Worker<T> {
"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<T: BeaconChainTypes> Worker<T> {
"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<T: BeaconChainTypes> Worker<T> {
"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) => {