Enum common_types::errors::EngineError[][src]

pub enum EngineError {
    NotAuthorized(Address),
    DoubleVote(Address),
    NotProposer(Mismatch<Address>),
    UnexpectedMessage,
    BadSealFieldSize(OutOfBounds<usize>),
    InsufficientProof(String),
    FailedSystemCall(String),
    SystemCallResultDecoding(String),
    SystemCallResultInvalid(String),
    MalformedMessage(String),
    RequiresClient,
    InvalidEngine,
    RequiresSigner,
    MissingParent(H256),
    CliqueMissingCheckpoint(H256),
    CliqueMissingVanity,
    CliqueMissingSignature,
    CliqueCheckpointNoSigner,
    CliqueCheckpointInvalidSigners(usize),
    CliqueWrongAuthorCheckpoint(Mismatch<Address>),
    CliqueFaultyRecoveredSigners(Vec<String>),
    CliqueInvalidNonce(H64),
    CliqueTooRecentlySigned(Address),
    Custom(String),
}

Voting errors.

Variants

NotAuthorized(Address)

Signature or author field does not belong to an authority.

DoubleVote(Address)

The same author issued different votes at the same step.

NotProposer(Mismatch<Address>)

The received block is from an incorrect proposer.

UnexpectedMessage

Message was not expected.

BadSealFieldSize(OutOfBounds<usize>)

Seal field has an unexpected size.

InsufficientProof(String)

Validation proof insufficient.

FailedSystemCall(String)

Failed system call.

SystemCallResultDecoding(String)

Failed to decode the result of a system call.

SystemCallResultInvalid(String)

The result of a system call is invalid.

MalformedMessage(String)

Malformed consensus message.

RequiresClient

Requires client ref, but none registered.

InvalidEngine

Invalid engine specification or implementation.

RequiresSigner

Requires signer ref, but none registered.

MissingParent(H256)

Missing Parent Epoch

CliqueMissingCheckpoint(H256)

Checkpoint is missing

CliqueMissingVanity

Missing vanity data

CliqueMissingSignature

Missing signature

CliqueCheckpointNoSigner

Missing signers

CliqueCheckpointInvalidSigners(usize)

List of signers is invalid

CliqueWrongAuthorCheckpoint(Mismatch<Address>)

Wrong author on a checkpoint

CliqueFaultyRecoveredSigners(Vec<String>)

Wrong checkpoint authors recovered

CliqueInvalidNonce(H64)

Invalid nonce (should contain vote)

CliqueTooRecentlySigned(Address)

The signer signed a block to recently

Custom(String)

Custom

Trait Implementations

impl Debug for EngineError[src]

impl Display for EngineError[src]

impl Error for EngineError[src]

impl From<EngineError> for VapcoreError[src]

impl From<H64> for EngineError[src]

impl From<OutOfBounds<usize>> for EngineError[src]

impl From<Vec<String, Global>> for EngineError[src]

impl From<usize> for EngineError[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> 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>,