mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-10 13:01:22 +00:00
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,
|
"request_root" => ?root,
|
||||||
"finalized_data_availability_boundary" => finalized_data_availability_boundary,
|
"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 {
|
} else {
|
||||||
debug!(
|
debug!(
|
||||||
self.log,
|
self.log,
|
||||||
@ -275,15 +267,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
"request_root" => ?root,
|
"request_root" => ?root,
|
||||||
"finalized_data_availability_boundary" => finalized_data_availability_boundary,
|
"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(_))) => {
|
Ok((None, Some(_))) => {
|
||||||
debug!(
|
debug!(
|
||||||
@ -753,13 +737,6 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
"No blobs or block in the store for block root";
|
"No blobs or block in the store for block root";
|
||||||
"block_root" => ?root
|
"block_root" => ?root
|
||||||
);
|
);
|
||||||
self.send_error_response(
|
|
||||||
peer_id,
|
|
||||||
RPCResponseErrorCode::ResourceUnavailable,
|
|
||||||
"Blobs unavailable".into(),
|
|
||||||
request_id,
|
|
||||||
);
|
|
||||||
send_response = false;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Err(BeaconChainError::BlobsUnavailable) => {
|
Err(BeaconChainError::BlobsUnavailable) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user