mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 14:28:37 +00:00
Disable optimistic sync for Gloas
This commit is contained in:
@@ -167,6 +167,16 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
.map_err(BeaconChainError::TokioJoin)?
|
||||
.ok_or(BeaconChainError::RuntimeShutdown)??;
|
||||
|
||||
// TODO(gloas): optimistic sync is not supported for Gloas, maybe we could re-add it
|
||||
if payload_verification_outcome
|
||||
.payload_verification_status
|
||||
.is_optimistic()
|
||||
{
|
||||
return Err(EnvelopeError::OptimisticSyncNotSupported {
|
||||
block_root: import_data.block_root,
|
||||
});
|
||||
}
|
||||
|
||||
Ok(ExecutedEnvelope::new(
|
||||
signed_envelope,
|
||||
import_data,
|
||||
|
||||
@@ -182,6 +182,8 @@ pub enum EnvelopeError {
|
||||
payload_slot: Slot,
|
||||
latest_finalized_slot: Slot,
|
||||
},
|
||||
/// Optimistic sync is not supported for Gloas payload envelopes.
|
||||
OptimisticSyncNotSupported { block_root: Hash256 },
|
||||
/// Some Beacon Chain Error
|
||||
BeaconChainError(Arc<BeaconChainError>),
|
||||
/// Some Beacon State error
|
||||
|
||||
Reference in New Issue
Block a user