pub enum VersionSpecificValidationError {
ParentBeaconBlockRootNotSupportedBeforeV3,
WithdrawalsNotSupportedInV1,
NoWithdrawalsPostShanghai,
HasWithdrawalsPreShanghai,
NoParentBeaconBlockRootPostCancun,
BlockAccessListNotSupported,
NoBlockAccessListPostAmsterdam,
SlotNumberNotSupported,
NoSlotNumberPostAmsterdam,
}Expand description
Thrown when validating an execution payload OR payload attributes fails due to:
- The existence of a new field that is not supported in the given engine method version, or
- The absence of a field that is required in the given engine method version
Variants§
ParentBeaconBlockRootNotSupportedBeforeV3
Thrown if the pre-V3 PayloadAttributes or ExecutionPayload contains a parent beacon
block root
WithdrawalsNotSupportedInV1
Thrown if engine_forkchoiceUpdatedV1 or engine_newPayloadV1 contains withdrawals
NoWithdrawalsPostShanghai
Thrown if an engine method requires withdrawals but none are provided.
HasWithdrawalsPreShanghai
Thrown if V2 PayloadAttributes or ExecutionPayload contains withdrawals before
Shanghai.
NoParentBeaconBlockRootPostCancun
Thrown if the PayloadAttributes or ExecutionPayload contains no parent beacon block
root after Cancun
BlockAccessListNotSupported
Thrown if the current engine method version does not support a block access list
NoBlockAccessListPostAmsterdam
Thrown if an engine method that requires a block access list does not contain one.
SlotNumberNotSupported
Thrown if the current engine method version does not support a slot number
NoSlotNumberPostAmsterdam
Thrown if an engine method that requires a slot number does not contain one.
Trait Implementations§
Source§impl Error for VersionSpecificValidationError
impl Error for VersionSpecificValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for VersionSpecificValidationError
impl RefUnwindSafe for VersionSpecificValidationError
impl Send for VersionSpecificValidationError
impl Sync for VersionSpecificValidationError
impl Unpin for VersionSpecificValidationError
impl UnsafeUnpin for VersionSpecificValidationError
impl UnwindSafe for VersionSpecificValidationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> MaybeDebug for Twhere
T: Debug,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
ParentBeaconBlockRootNotSupportedBeforeV3: 0 bytesWithdrawalsNotSupportedInV1: 0 bytesNoWithdrawalsPostShanghai: 0 bytesHasWithdrawalsPreShanghai: 0 bytesNoParentBeaconBlockRootPostCancun: 0 bytesBlockAccessListNotSupported: 0 bytesNoBlockAccessListPostAmsterdam: 0 bytesSlotNumberNotSupported: 0 bytesNoSlotNumberPostAmsterdam: 0 bytes