pub enum Error<B: BlockT> {
Show 27 variants 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>>),
}
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

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

Convert from a value of T into an equivalent instance of Option<Self>. Read more

Consume self to return Some equivalent value of Option<T>. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Convert from a value of T into an equivalent instance of Self. Read more

Consume self to return an equivalent value of T. Read more

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.

The counterpart to unchecked_from.

Consume self to return an equivalent value of T.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more