Enum sc_consensus_babe::Error 
source · pub enum Error<B: BlockT> {
Show 29 variants
    MultiplePreRuntimeDigests,
    NoPreRuntimeDigest,
    MultipleEpochChangeDigests,
    MultipleConfigChangeDigests,
    Extraction(Error),
    FetchEpoch(B::Hash),
    TooFarInFuture(B::Hash),
    ParentUnavailable(B::Hash, B::Hash),
    SlotMustIncrease(Slot, Slot),
    HeaderBadSeal(B::Hash),
    HeaderUnsealed(B::Hash),
    SlotAuthorNotFound,
    SecondarySlotAssignmentsDisabled,
    BadSignature(B::Hash),
    InvalidAuthor(AuthorityId, AuthorityId),
    NoSecondaryAuthorExpected,
    VRFVerificationOfBlockFailed(AuthorityId, u128),
    VRFVerificationFailed(SignatureError),
    FetchParentHeader(Error),
    ExpectedEpochChange(B::Hash, Slot),
    UnexpectedConfigChange,
    UnexpectedEpochChange,
    ParentBlockNoAssociatedWeight(B::Hash),
    CheckInherents(Error),
    CheckInherentsUnhandled(InherentIdentifier),
    CreateInherents(Error),
    Client(Error),
    RuntimeApi(ApiError),
    ForkTree(Box<Error<Error>>),
}Expand description
Errors encountered by the babe authorship task.
Variants§
MultiplePreRuntimeDigests
Multiple BABE pre-runtime digests
NoPreRuntimeDigest
No BABE pre-runtime digest found
MultipleEpochChangeDigests
Multiple BABE epoch change digests
MultipleConfigChangeDigests
Multiple BABE config change digests
Extraction(Error)
Could not extract timestamp and slot
FetchEpoch(B::Hash)
Could not fetch epoch
TooFarInFuture(B::Hash)
Header rejected: too far in the future
Parent unavailable. Cannot import
SlotMustIncrease(Slot, Slot)
Slot number must increase
HeaderBadSeal(B::Hash)
Header has a bad seal
HeaderUnsealed(B::Hash)
Header is unsealed
SlotAuthorNotFound
Slot author not found
SecondarySlotAssignmentsDisabled
Secondary slot assignments are disabled for the current epoch.
BadSignature(B::Hash)
Bad signature
InvalidAuthor(AuthorityId, AuthorityId)
Invalid author: Expected secondary author
NoSecondaryAuthorExpected
No secondary author expected.
VRFVerificationOfBlockFailed(AuthorityId, u128)
VRF verification of block by author failed
VRFVerificationFailed(SignatureError)
VRF verification failed
FetchParentHeader(Error)
Could not fetch parent header
ExpectedEpochChange(B::Hash, Slot)
Expected epoch change to happen.
UnexpectedConfigChange
Unexpected config change.
UnexpectedEpochChange
Unexpected epoch change
ParentBlockNoAssociatedWeight(B::Hash)
Parent block has no associated weight
CheckInherents(Error)
Check inherents error
CheckInherentsUnhandled(InherentIdentifier)
Unhandled check inherents error
CreateInherents(Error)
Create inherents error.
Client(Error)
Client error
RuntimeApi(ApiError)
Runtime Api error.
ForkTree(Box<Error<Error>>)
Fork tree error
Trait Implementations§
source§impl<B: BlockT> Error for Error<B>where
    Self: Debug + Display,
 
impl<B: BlockT> Error for Error<B>where
    Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
Auto Trait Implementations§
impl<B> !RefUnwindSafe for Error<B>
impl<B> Send for Error<B>
impl<B> Sync for Error<B>
impl<B> Unpin for Error<B>where
    <B as Block>::Hash: Unpin,
impl<B> !UnwindSafe for Error<B>
Blanket Implementations§
source§impl<T> CheckedConversion for T
 
impl<T> CheckedConversion for T
source§impl<T> Downcast for Twhere
    T: Any,
 
impl<T> Downcast for Twhere
    T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
 
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read moresource§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
 
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read moresource§fn as_any(&self) -> &(dyn Any + 'static)
 
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read moresource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
 
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read moresource§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>,
 
impl<T, Outer> IsWrappedBy<Outer> for Twhere
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>,
source§impl<T> Pointable for T
 
impl<T> Pointable for T
source§impl<T> SaturatedConversion for T
 
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
    Self: UniqueSaturatedFrom<T>,
 
fn saturated_from<T>(t: T) -> Selfwhere
    Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
    Self: UniqueSaturatedInto<T>,
 
fn saturated_into<T>(self) -> Twhere
    Self: UniqueSaturatedInto<T>,
T. Read moresource§impl<S, T> UncheckedInto<T> for Swhere
    T: UncheckedFrom<S>,
 
impl<S, T> UncheckedInto<T> for Swhere
    T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
 
fn unchecked_into(self) -> T
unchecked_from.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
    T: Bounded,
    S: TryInto<T>,
 
impl<T, S> UniqueSaturatedInto<T> for Swhere
    T: Bounded,
    S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
 
fn unique_saturated_into(self) -> T
T.