[][src]Enum beacon_chain::test_utils::BlockStrategy

pub enum BlockStrategy {
    OnCanonicalHead,
    ForkCanonicalChainAt {
        previous_slot: Slot,
        first_slot: Slot,
    },
}

Indicates how the BeaconChainHarness should produce blocks.

Variants

OnCanonicalHead

Produce blocks upon the canonical head (normal case).

ForkCanonicalChainAt

Ignore the canonical head and produce blocks upon the block at the given slot.

Useful for simulating forks.

Fields of ForkCanonicalChainAt

previous_slot: Slot

The slot of the parent of the first block produced.

first_slot: Slot

The slot of the first block produced (must be higher than previous_slot.

Trait Implementations

impl Clone for BlockStrategy[src]

impl Copy for BlockStrategy[src]

impl Debug for BlockStrategy[src]

Auto Trait Implementations

impl Send for BlockStrategy

impl Unpin for BlockStrategy

impl Sync for BlockStrategy

impl UnwindSafe for BlockStrategy

impl RefUnwindSafe for BlockStrategy

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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