[][src]Struct solana_sdk::genesis_block::GenesisBlock

pub struct GenesisBlock {
    pub bootstrap_leader_id: Pubkey,
    pub bootstrap_leader_lamports: u64,
    pub bootstrap_leader_vote_account_id: Pubkey,
    pub mint_id: Pubkey,
    pub lamports: u64,
    pub ticks_per_slot: u64,
    pub slots_per_epoch: u64,
    pub stakers_slot_offset: u64,
    pub epoch_warmup: bool,
}

Fields

bootstrap_leader_id: Pubkeybootstrap_leader_lamports: u64bootstrap_leader_vote_account_id: Pubkeymint_id: Pubkeylamports: u64ticks_per_slot: u64slots_per_epoch: u64stakers_slot_offset: u64epoch_warmup: bool

Methods

impl GenesisBlock[src]

pub fn new(lamports: u64) -> (Self, Keypair)[src]

pub fn new_with_leader(
    lamports: u64,
    bootstrap_leader_id: &Pubkey,
    bootstrap_leader_lamports: u64
) -> (Self, Keypair)
[src]

pub fn hash(&self) -> Hash[src]

pub fn load(ledger_path: &str) -> Result<Self, Error>[src]

pub fn write(&self, ledger_path: &str) -> Result<(), Error>[src]

Trait Implementations

impl Debug for GenesisBlock[src]

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

impl Serialize for GenesisBlock[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

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