Enum common_types::errors::BlockError[][src]

pub enum BlockError {
    TooManyUncles(OutOfBounds<usize>),
    ExtraDataOutOfBounds(OutOfBounds<usize>),
    InvalidSealArity(Mismatch<usize>),
    TooMuchGasUsed(OutOfBounds<U256>),
    InvalidUnclesHash(Mismatch<H256>),
    UncleOutOfBounds(OutOfBounds<BlockNumber>),
    UncleInChain(H256),
    DuplicateUncle(H256),
    UncleParentNotInChain(H256),
    InvalidStateRoot(Mismatch<H256>),
    InvalidGasUsed(Mismatch<U256>),
    InvalidTransactionsRoot(Mismatch<H256>),
    DifficultyOutOfBounds(OutOfBounds<U256>),
    InvalidDifficulty(Mismatch<U256>),
    MismatchedH256SealElement(Mismatch<H256>),
    InvalidProofOfWork(OutOfBounds<U256>),
    InvalidSeal,
    InvalidGasLimit(OutOfBounds<U256>),
    InvalidReceiptsRoot(Mismatch<H256>),
    InvalidTimestamp(OutOfBoundsTime),
    TemporarilyInvalid(OutOfBoundsTime),
    InvalidLogBloom(Box<Mismatch<Bloom>>),
    InvalidNumber(Mismatch<BlockNumber>),
    RidiculousNumber(OutOfBounds<BlockNumber>),
    TimestampOverflow,
    TooManyTransactions(Address),
    UnknownParent(H256),
    UnknownUncleParent(H256),
    UnknownEpochTransition(u64),
}

Errors concerning block processing.

Variants

TooManyUncles(OutOfBounds<usize>)

Block has too many uncles.

ExtraDataOutOfBounds(OutOfBounds<usize>)

Extra data is of an invalid length.

InvalidSealArity(Mismatch<usize>)

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.

UncleInChain(H256)

An uncle is already in the chain.

DuplicateUncle(H256)

An uncle is included twice.

UncleParentNotInChain(H256)

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.

InvalidSeal

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.

InvalidTimestamp(OutOfBoundsTime)

Timestamp header field is invalid.

TemporarilyInvalid(OutOfBoundsTime)

Timestamp header field is too far in future.

InvalidLogBloom(Box<Mismatch<Bloom>>)

Log bloom header field is invalid.

InvalidNumber(Mismatch<BlockNumber>)

Number field of header is invalid.

RidiculousNumber(OutOfBounds<BlockNumber>)

Block number isn’t sensible.

TimestampOverflow

Timestamp header overflowed

TooManyTransactions(Address)

Too many transactions from a particular address.

UnknownParent(H256)

Parent given is unknown.

UnknownUncleParent(H256)

Uncle parent given is unknown.

UnknownEpochTransition(u64)

No transition to epoch number.

Trait Implementations

impl Clone for BlockError[src]

impl Debug for BlockError[src]

impl Display for BlockError[src]

impl Eq for BlockError[src]

impl Error for BlockError[src]

impl From<BlockError> for VapcoreError[src]

impl PartialEq<BlockError> for BlockError[src]

impl StructuralEq for BlockError[src]

impl StructuralPartialEq for BlockError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,