[][src]Enum beacon_chain::BlockProcessingOutcome

pub enum BlockProcessingOutcome {
    Processed {
        block_root: Hash256,
    },
    ParentUnknown {
        parent: Hash256,
    },
    FutureSlot {
        present_slot: Slot,
        block_slot: Slot,
    },
    StateRootMismatch {
        block: Hash256,
        local: Hash256,
    },
    GenesisBlock,
    WouldRevertFinalizedSlot {
        block_slot: Slot,
        finalized_slot: Slot,
    },
    BlockIsAlreadyKnown,
    PerBlockProcessingError(BlockProcessingError),
}

Variants

Processed

Block was valid and imported into the block graph.

Fields of Processed

block_root: Hash256
ParentUnknown

The blocks parent_root is unknown.

Fields of ParentUnknown

parent: Hash256
FutureSlot

The block slot is greater than the present slot.

Fields of FutureSlot

present_slot: Slotblock_slot: Slot
StateRootMismatch

The block state_root does not match the generated state.

Fields of StateRootMismatch

block: Hash256local: Hash256
GenesisBlock

The block was a genesis block, these blocks cannot be re-imported.

WouldRevertFinalizedSlot

The slot is finalized, no need to import.

Fields of WouldRevertFinalizedSlot

block_slot: Slotfinalized_slot: Slot
BlockIsAlreadyKnown

Block is already known, no need to re-import.

PerBlockProcessingError(BlockProcessingError)

The block could not be applied to the state, it is invalid.

Trait Implementations

impl PartialEq<BlockProcessingOutcome> for BlockProcessingOutcome[src]

impl Debug for BlockProcessingOutcome[src]

Auto Trait Implementations

impl Send for BlockProcessingOutcome

impl Unpin for BlockProcessingOutcome

impl Sync for BlockProcessingOutcome

impl UnwindSafe for BlockProcessingOutcome

impl RefUnwindSafe for BlockProcessingOutcome

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>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Erased for T