[][src]Enum state_processing::per_block_processing::errors::BlockProcessingError

pub enum BlockProcessingError {
    RandaoSignatureInvalid,
    BulkSignatureVerificationFailed,
    StateRootMismatch,
    DepositCountInvalid {
        expected: usize,
        found: usize,
    },
    DuplicateTransfers {
        duplicates: usize,
    },
    HeaderInvalid {
        reason: HeaderInvalid,
    },
    ProposerSlashingInvalid {
        index: usize,
        reason: ProposerSlashingInvalid,
    },
    AttesterSlashingInvalid {
        index: usize,
        reason: AttesterSlashingInvalid,
    },
    IndexedAttestationInvalid {
        index: usize,
        reason: IndexedAttestationInvalid,
    },
    AttestationInvalid {
        index: usize,
        reason: AttestationInvalid,
    },
    DepositInvalid {
        index: usize,
        reason: DepositInvalid,
    },
    ExitInvalid {
        index: usize,
        reason: ExitInvalid,
    },
    TransferInvalid {
        index: usize,
        reason: TransferInvalid,
    },
    BeaconStateError(BeaconStateError),
    SignatureSetError(SignatureSetError),
    SszTypesError(Error),
}

The error returned from the per_block_processing function. Indicates that a block is either invalid, or we were unable to determine it's validity (we encountered an unexpected error).

Any of the ...Error variants indicate that at some point during block (and block operation) verification, there was an error. There is no indication as to where that error happened (e.g., when processing attestations instead of when processing deposits).

Variants

RandaoSignatureInvalid
BulkSignatureVerificationFailed
StateRootMismatch
DepositCountInvalid

Fields of DepositCountInvalid

expected: usizefound: usize
DuplicateTransfers

Fields of DuplicateTransfers

duplicates: usize
HeaderInvalid

Fields of HeaderInvalid

reason: HeaderInvalid
ProposerSlashingInvalid

Fields of ProposerSlashingInvalid

index: usizereason: ProposerSlashingInvalid
AttesterSlashingInvalid

Fields of AttesterSlashingInvalid

index: usizereason: AttesterSlashingInvalid
IndexedAttestationInvalid

Fields of IndexedAttestationInvalid

index: usizereason: IndexedAttestationInvalid
AttestationInvalid

Fields of AttestationInvalid

index: usizereason: AttestationInvalid
DepositInvalid

Fields of DepositInvalid

index: usizereason: DepositInvalid
ExitInvalid

Fields of ExitInvalid

index: usizereason: ExitInvalid
TransferInvalid

Fields of TransferInvalid

index: usizereason: TransferInvalid
BeaconStateError(BeaconStateError)
SignatureSetError(SignatureSetError)
SszTypesError(Error)

Trait Implementations

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<ProposerSlashingInvalid>[src]

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<AttesterSlashingInvalid>[src]

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<IndexedAttestationInvalid>[src]

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<AttestationInvalid>[src]

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<DepositInvalid>[src]

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<ExitInvalid>[src]

impl IntoWithIndex<BlockProcessingError> for BlockOperationError<TransferInvalid>[src]

impl PartialEq<BlockProcessingError> for BlockProcessingError[src]

impl From<Error> for BlockProcessingError[src]

impl From<Error> for BlockProcessingError[src]

impl From<BlockOperationError<HeaderInvalid>> for BlockProcessingError[src]

impl Debug for BlockProcessingError[src]

Auto Trait Implementations

impl Send for BlockProcessingError

impl Unpin for BlockProcessingError

impl Sync for BlockProcessingError

impl UnwindSafe for BlockProcessingError

impl RefUnwindSafe for BlockProcessingError

Blanket Implementations

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,