pub enum FraudProofError {
Show 21 variants
BadReceiptNotFound,
ChallengingGenesisReceipt,
DescendantsOfFraudulentERNotPruned,
InvalidBlockFeesFraudProof,
InvalidTransfersFraudProof,
InvalidDomainBlockHashFraudProof,
InvalidExtrinsicRootFraudProof,
InvalidStateTransitionFraudProof,
ParentReceiptNotFound,
InvalidBundleFraudProof,
BadValidBundleFraudProof,
MissingOperator,
UnexpectedFraudProof,
BadReceiptAlreadyReported,
BadMmrProof,
UnexpectedMmrProof,
MissingMmrProof,
RuntimeNotFound,
DomainRuntimeCodeProofNotFound,
UnexpectedDomainRuntimeCodeProof,
StorageProof(VerificationError),
}
Variants§
BadReceiptNotFound
The targeted bad receipt not found which may already pruned by other fraud proof or the fraud proof is submitted to the wrong fork.
ChallengingGenesisReceipt
The genesis receipt is unchallengeable.
DescendantsOfFraudulentERNotPruned
The descendants of the fraudulent ER is not pruned
InvalidBlockFeesFraudProof
Invalid fraud proof since block fees are not mismatched.
InvalidTransfersFraudProof
Invalid fraud proof since transfers are not mismatched.
InvalidDomainBlockHashFraudProof
Invalid domain block hash fraud proof.
InvalidExtrinsicRootFraudProof
Invalid domain extrinsic fraud proof
InvalidStateTransitionFraudProof
Invalid state transition fraud proof
ParentReceiptNotFound
Parent receipt not found.
InvalidBundleFraudProof
Invalid bundles fraud proof
BadValidBundleFraudProof
Bad/Invalid valid bundle fraud proof
MissingOperator
Missing operator.
UnexpectedFraudProof
Unexpected fraud proof.
BadReceiptAlreadyReported
The bad receipt already reported by a previous fraud proof
BadMmrProof
Bad MMR proof, it may due to the proof is expired or it is generated against a different fork.
UnexpectedMmrProof
Unexpected MMR proof
MissingMmrProof
Missing MMR proof
RuntimeNotFound
Domain runtime not found
DomainRuntimeCodeProofNotFound
The domain runtime code proof is not provided
UnexpectedDomainRuntimeCodeProof
The domain runtime code proof is unexpected
StorageProof(VerificationError)
The storage proof is invalid
Trait Implementations§
source§impl Debug for FraudProofError
impl Debug for FraudProofError
source§impl Decode for FraudProofError
impl Decode for FraudProofError
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 FraudProofError
impl Encode for FraudProofError
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<T> From<FraudProofError> for Error<T>
impl<T> From<FraudProofError> for Error<T>
source§fn from(err: FraudProofError) -> Self
fn from(err: FraudProofError) -> Self
source§impl From<VerificationError> for FraudProofError
impl From<VerificationError> for FraudProofError
source§impl PalletError for FraudProofError
impl PalletError for FraudProofError
source§const MAX_ENCODED_SIZE: usize = 3usize
const MAX_ENCODED_SIZE: usize = 3usize
source§impl PartialEq for FraudProofError
impl PartialEq for FraudProofError
source§impl TypeInfo for FraudProofError
impl TypeInfo for FraudProofError
impl EncodeLike for FraudProofError
impl StructuralPartialEq for FraudProofError
Auto Trait Implementations§
impl Freeze for FraudProofError
impl RefUnwindSafe for FraudProofError
impl Send for FraudProofError
impl Sync for FraudProofError
impl Unpin for FraudProofError
impl UnwindSafe for FraudProofError
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
.