Enum sc_consensus_babe::Error
source · pub enum Error<B: BlockT> {
Show 30 variants
MultiplePreRuntimeDigests,
NoPreRuntimeDigest,
MultipleEpochChangeDigests,
MultipleConfigChangeDigests,
Extraction(ConsensusError),
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,
VrfVerificationFailed,
VrfThresholdExceeded(u128),
FetchParentHeader(Error),
ExpectedEpochChange(B::Hash, Slot),
UnexpectedConfigChange,
UnexpectedEpochChange,
ParentBlockNoAssociatedWeight(B::Hash),
CheckInherents(Error),
CheckInherentsUnhandled(InherentIdentifier),
CreateInherents(Error),
BackgroundWorkerTerminated,
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(ConsensusError)
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.
VrfVerificationFailed
VRF verification failed
VrfThresholdExceeded(u128)
Primary slot threshold too low
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.
BackgroundWorkerTerminated
Background worker is not running and therefore requests cannot be answered.
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> 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>,
§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
.