Enum common_types::errors::BlockError [−][src]
Errors concerning block processing.
Variants
TooManyUncles(OutOfBounds<usize>)Block has too many uncles.
ExtraDataOutOfBounds(OutOfBounds<usize>)Extra data is of an invalid length.
Seal is incorrect format.
TooMuchGasUsed(OutOfBounds<U256>)Block has too much gas used.
InvalidUnclesHash(Mismatch<H256>)Uncles hash in header is invalid.
UncleOutOfBounds(OutOfBounds<BlockNumber>)An uncle is from a wrong generation.
An uncle is already in the chain.
An uncle is included twice.
An uncle has a parent not in the chain.
InvalidStateRoot(Mismatch<H256>)State root header field is invalid.
InvalidGasUsed(Mismatch<U256>)Gas used header field is invalid.
InvalidTransactionsRoot(Mismatch<H256>)Transactions root header field is invalid.
DifficultyOutOfBounds(OutOfBounds<U256>)Difficulty is out of range; this can be used as an looser error prior to getting a definitive value for difficulty. This error needs only provide bounds of which it is out.
InvalidDifficulty(Mismatch<U256>)Difficulty header field is invalid; this is a strong error used after getting a definitive value for difficulty (which is provided).
MismatchedH256SealElement(Mismatch<H256>)Seal element of type H256 (max_hash for Vapash, but could be something else for other seal engines) is out of bounds.
InvalidProofOfWork(OutOfBounds<U256>)Proof-of-work aspect of seal, which we assume is a 256-bit value, is invalid.
Some low-level aspect of the seal is incorrect.
InvalidGasLimit(OutOfBounds<U256>)Gas limit header field is invalid.
InvalidReceiptsRoot(Mismatch<H256>)Receipts trie root header field is invalid.
Timestamp header field is invalid.
Timestamp header field is too far in future.
Log bloom header field is invalid.
InvalidNumber(Mismatch<BlockNumber>)Number field of header is invalid.
RidiculousNumber(OutOfBounds<BlockNumber>)Block number isn’t sensible.
Timestamp header overflowed
TooManyTransactions(Address)Too many transactions from a particular address.
Parent given is unknown.
Uncle parent given is unknown.
UnknownEpochTransition(u64)No transition to epoch number.
Trait Implementations
impl Clone for BlockError[src]
fn clone(&self) -> BlockError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for BlockError[src]
impl Display for BlockError[src]
impl Eq for BlockError[src]
impl Error for BlockError[src]
fn description(&self) -> &str[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl From<BlockError> for VapcoreError[src]
fn from(original: BlockError) -> VapcoreError[src]
impl PartialEq<BlockError> for BlockError[src]
fn eq(&self, other: &BlockError) -> bool[src]
fn ne(&self, other: &BlockError) -> bool[src]
impl StructuralEq for BlockError[src]
impl StructuralPartialEq for BlockError[src]
Auto Trait Implementations
impl RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnwindSafe for BlockError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,