Try to construct a consistent gloas rangesyncblock

This commit is contained in:
Pawan Dhananjay
2026-06-02 14:16:31 -07:00
parent 1b3f28a862
commit 2ce1797df5
4 changed files with 67 additions and 3 deletions

View File

@@ -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");
}

View File

@@ -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

View File

@@ -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");
}