don't send errors when we *correctly* don't have blobs
This commit is contained in:
parent
e1ce4e5b78
commit
c6479444c2
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user