mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-18 22:49:34 +00:00
Try to construct a consistent gloas rangesyncblock
This commit is contained in:
@@ -351,6 +351,9 @@ impl<T: BeaconChainTypes> BackFillSync<T> {
|
||||
CouplingError::BlobPeerFailure(msg) => {
|
||||
debug!(?batch_id, msg, "Blob peer failure");
|
||||
}
|
||||
CouplingError::EnvelopePeerFailure(msg) => {
|
||||
debug!(?batch_id, msg, "Envelope peer failure");
|
||||
}
|
||||
CouplingError::InternalError(msg) => {
|
||||
error!(?batch_id, msg, "Block components coupling internal error");
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ pub(crate) enum CouplingError {
|
||||
exceeded_retries: bool,
|
||||
},
|
||||
BlobPeerFailure(String),
|
||||
EnvelopePeerFailure(String),
|
||||
}
|
||||
|
||||
impl<E: EthSpec> RangeBlockComponentsRequest<E> {
|
||||
@@ -543,7 +544,10 @@ impl<E: EthSpec> RangeBlockComponentsRequest<E> {
|
||||
let available_envelope =
|
||||
envelope.map(|env| Box::new(AvailableEnvelope::new(env, columns)));
|
||||
|
||||
range_sync_blocks.push(RangeSyncBlock::new_gloas(block, available_envelope));
|
||||
range_sync_blocks.push(
|
||||
RangeSyncBlock::new_gloas(block, available_envelope)
|
||||
.map_err(CouplingError::EnvelopePeerFailure)?,
|
||||
);
|
||||
}
|
||||
|
||||
// Recoverable error, log and continue
|
||||
|
||||
@@ -952,6 +952,9 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
|
||||
CouplingError::BlobPeerFailure(msg) => {
|
||||
debug!(?batch_id, msg, "Blob peer failure");
|
||||
}
|
||||
CouplingError::EnvelopePeerFailure(msg) => {
|
||||
debug!(?batch_id, msg, "Envelope peer failure");
|
||||
}
|
||||
CouplingError::InternalError(msg) => {
|
||||
error!(?batch_id, msg, "Block components coupling internal error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user