pub enum BundleError {
Show 20 variants
InvalidOperatorId,
BadBundleSignature,
BadVrfSignature,
InvalidDomainId,
BadOperator,
ThresholdUnsatisfied,
Receipt(Error),
BundleTooLarge,
InvalidExtrinsicRoot,
InvalidProofOfTime,
SlotInTheFuture,
SlotInThePast,
BundleTooHeavy,
SlotSmallerThanPreviousBlockBundle,
EquivocatedBundle,
DomainFrozen,
UnableToPayBundleStorageFee,
UnexpectedReceiptGap,
ExpectingReceiptGap,
FailedToGetMissedUpgradeCount,
}
Variants§
InvalidOperatorId
Can not find the operator for given operator id.
BadBundleSignature
Invalid signature on the bundle header.
BadVrfSignature
Invalid vrf signature in the proof of election.
InvalidDomainId
Can not find the domain for given domain id.
BadOperator
Operator is not allowed to produce bundles in current epoch.
ThresholdUnsatisfied
Failed to pass the threshold check.
Receipt(Error)
An invalid execution receipt found in the bundle.
BundleTooLarge
Bundle size exceed the max bundle size limit in the domain config
InvalidExtrinsicRoot
Bundle with an invalid extrinsic root
InvalidProofOfTime
Invalid proof of time in the proof of election
SlotInTheFuture
The bundle is built on a slot in the future
SlotInThePast
The bundle is built on a slot in the past
BundleTooHeavy
Bundle weight exceeds the max bundle weight limit
SlotSmallerThanPreviousBlockBundle
The bundle slot is smaller then the highest slot from previous slot thus potential equivocated bundle
EquivocatedBundle
Equivocated bundle in current block
DomainFrozen
Domain is frozen and cannot accept new bundles
UnableToPayBundleStorageFee
The operator’s bundle storage fund unable to pay the storage fee
UnexpectedReceiptGap
Unexpected receipt gap when validating submit_bundle
ExpectingReceiptGap
Expecting receipt gap when validating submit_receipt
FailedToGetMissedUpgradeCount
Failed to get missed domain runtime upgrade count
Trait Implementations§
source§impl Debug for BundleError
impl Debug for BundleError
source§impl Decode for BundleError
impl Decode for BundleError
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
source§impl Encode for BundleError
impl Encode for BundleError
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
source§impl From<ProofOfElectionError> for BundleError
impl From<ProofOfElectionError> for BundleError
source§impl PalletError for BundleError
impl PalletError for BundleError
source§const MAX_ENCODED_SIZE: usize = 2usize
const MAX_ENCODED_SIZE: usize = 2usize
source§impl PartialEq for BundleError
impl PartialEq for BundleError
source§impl TypeInfo for BundleError
impl TypeInfo for BundleError
impl EncodeLike for BundleError
impl StructuralPartialEq for BundleError
Auto Trait Implementations§
impl Freeze for BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnwindSafe for BundleError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> Hashable for Twhere
T: Codec,
impl<T> Hashable for Twhere
T: Codec,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.