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

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.

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Consensus vote error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.