[][src]Enum beacon_node::ClientGenesis

pub enum ClientGenesis {
    Resume,
    Interop {
        validator_count: usize,
        genesis_time: u64,
    },
    DepositContract,
    SszFile {
        path: PathBuf,
    },
    RemoteNode {
        server: String,
        port: Option<u16>,
    },
}

Defines how the client should initialize the BeaconChain and other components.

Variants

Resume

Reads the genesis state and other persisted data from the Store.

Interop

Creates a genesis state as per the 2019 Canada interop specifications.

Fields of Interop

validator_count: usizegenesis_time: u64
DepositContract

Connects to an eth1 node and waits until it can create the genesis state from the deposit contract.

SszFile

Loads the genesis state from a SSZ-encoded BeaconState file.

Fields of SszFile

path: PathBuf
RemoteNode

Connects to another Lighthouse instance and reads the genesis state and other data via the HTTP API.

Fields of RemoteNode

server: Stringport: Option<u16>

Trait Implementations

impl Debug for ClientGenesis[src]

impl Clone for ClientGenesis[src]

impl Serialize for ClientGenesis[src]

impl Default for ClientGenesis[src]

impl<'de> Deserialize<'de> for ClientGenesis[src]

Auto Trait Implementations

impl Send for ClientGenesis

impl Unpin for ClientGenesis

impl Sync for ClientGenesis

impl UnwindSafe for ClientGenesis

impl RefUnwindSafe for ClientGenesis

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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