Enum ethcore::engines::EngineError
source · [−]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
sourceimpl Debug for EngineError
impl Debug for EngineError
sourceimpl Display for EngineError
impl Display for EngineError
sourceimpl Error for EngineError
impl Error for EngineError
sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<EngineError> for Error
impl From<EngineError> for Error
Consensus vote error.
sourcefn from(e: EngineError) -> Self
fn from(e: EngineError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnwindSafe for EngineError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more