pub enum PayloadError {
Show 19 variants
ExtraData(Bytes),
BaseFee(U256),
BlobGasUsed(U256),
ExcessBlobGas(U256),
PreShanghaiBlockWithWithdrawals,
PostShanghaiBlockWithoutWithdrawals,
PreCancunBlockWithBlobTransactions,
PreCancunBlockWithBlobGasUsed,
PreCancunBlockWithExcessBlobGas,
PreCancunWithCancunFields,
PostCancunBlockWithoutBlobTransactions,
PostCancunBlockWithoutBlobGasUsed,
PostCancunBlockWithoutExcessBlobGas,
PostCancunWithoutCancunFields,
PrePragueBlockWithEip7702Transactions,
PrePragueBlockRequests,
BlockHash {
execution: B256,
consensus: B256,
},
InvalidVersionedHashes,
Decode(Error),
}
Expand description
Error that can occur when handling payloads.
Variants§
ExtraData(Bytes)
Invalid payload extra data.
BaseFee(U256)
Invalid payload base fee.
BlobGasUsed(U256)
Invalid payload blob gas used.
ExcessBlobGas(U256)
Invalid payload excess blob gas.
PreShanghaiBlockWithWithdrawals
withdrawals present in pre-shanghai payload.
PostShanghaiBlockWithoutWithdrawals
withdrawals missing in post-shanghai payload.
PreCancunBlockWithBlobTransactions
blob transactions present in pre-cancun payload.
PreCancunBlockWithBlobGasUsed
blob gas used present in pre-cancun payload.
PreCancunBlockWithExcessBlobGas
excess blob gas present in pre-cancun payload.
PreCancunWithCancunFields
cancun fields present in pre-cancun payload.
PostCancunBlockWithoutBlobTransactions
blob transactions missing in post-cancun payload.
PostCancunBlockWithoutBlobGasUsed
blob gas used missing in post-cancun payload.
PostCancunBlockWithoutExcessBlobGas
excess blob gas missing in post-cancun payload.
PostCancunWithoutCancunFields
cancun fields missing in post-cancun payload.
PrePragueBlockWithEip7702Transactions
blob transactions present in pre-prague payload.
PrePragueBlockRequests
requests present in pre-prague payload.
BlockHash
Invalid payload block hash.
Fields
InvalidVersionedHashes
Expected blob versioned hashes do not match the given transactions.
Decode(Error)
Encountered decoding error.
Implementations§
Source§impl PayloadError
impl PayloadError
Sourcepub const fn is_block_hash_mismatch(&self) -> bool
pub const fn is_block_hash_mismatch(&self) -> bool
Returns true
if the error is caused by a block hash mismatch.
Sourcepub const fn is_invalid_versioned_hashes(&self) -> bool
pub const fn is_invalid_versioned_hashes(&self) -> bool
Returns true
if the error is caused by invalid block hashes (Cancun).
Trait Implementations§
Source§impl Debug for PayloadError
impl Debug for PayloadError
Source§impl Display for PayloadError
impl Display for PayloadError
Source§impl Error for PayloadError
Available on crate feature std
only.
impl Error for PayloadError
std
only.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
Source§impl From<Error> for PayloadError
impl From<Error> for PayloadError
Source§impl From<PayloadError> for PayloadStatusEnum
impl From<PayloadError> for PayloadStatusEnum
Source§fn from(error: PayloadError) -> Self
fn from(error: PayloadError) -> Self
Auto Trait Implementations§
impl !Freeze for PayloadError
impl RefUnwindSafe for PayloadError
impl Send for PayloadError
impl Sync for PayloadError
impl Unpin for PayloadError
impl UnwindSafe for PayloadError
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
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 more