Enum sc_consensus_babe::Error[][src]

pub enum Error<B: BlockT> {
    MultiplePreRuntimeDigests,
    NoPreRuntimeDigest,
    MultipleEpochChangeDigests,
    MultipleConfigChangeDigests,
    Extraction(Error),
    FetchEpoch(B::Hash),
    TooFarInFuture(B::Hash),
    ParentUnavailable(B::Hash, B::Hash),
    SlotMustIncrease(SlotSlot),
    HeaderBadSeal(B::Hash),
    HeaderUnsealed(B::Hash),
    SlotAuthorNotFound,
    SecondarySlotAssignmentsDisabled,
    BadSignature(B::Hash),
    InvalidAuthor(AuthorityIdAuthorityId),
    NoSecondaryAuthorExpected,
    VRFVerificationOfBlockFailed(AuthorityIdu128),
    VRFVerificationFailed(SignatureError),
    FetchParentHeader(Error),
    ExpectedEpochChange(B::HashSlot),
    UnexpectedConfigChange,
    UnexpectedEpochChange,
    ParentBlockNoAssociatedWeight(B::Hash),
    CheckInherents(String),
    Client(Error),
    Runtime(Error),
    ForkTree(Box<Error<Error>>),
}

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

ParentUnavailable(B::Hash, B::Hash)

Parent unavailable. Cannot import

SlotMustIncrease(SlotSlot)

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(AuthorityIdAuthorityId)

Invalid author: Expected secondary author

NoSecondaryAuthorExpected

No secondary author expected.

VRFVerificationOfBlockFailed(AuthorityIdu128)

VRF verification of block by author failed

VRFVerificationFailed(SignatureError)

VRF verification failed

FetchParentHeader(Error)

Could not fetch parent header

ExpectedEpochChange(B::HashSlot)

Expected epoch change to happen.

UnexpectedConfigChange

Unexpected config change.

UnexpectedEpochChange

Unexpected epoch change

ParentBlockNoAssociatedWeight(B::Hash)

Parent block has no associated weight

CheckInherents(String)

Check Inherents error

Client(Error)

Client error

Runtime(Error)

Runtime error

ForkTree(Box<Error<Error>>)

Fork tree error

Trait Implementations

impl<B: Debug + BlockT> Debug for Error<B> where
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug,
    B::Hash: Debug
[src]

impl<B: BlockT> Display for Error<B> where
    B::Hash: Display + Debug
[src]

impl<B: BlockT> From<Error<B>> for String[src]

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

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> CheckedConversion for T[src]

impl<T> Error for T where
    T: 'static + Debug + Display + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDisplay for T where
    T: Display
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]