[][src]Struct solana_local_cluster::local_cluster::ClusterConfig

pub struct ClusterConfig {
    pub validator_configs: Vec<ValidatorConfig>,
    pub num_listeners: u64,
    pub validator_keys: Option<Vec<(Arc<Keypair>, bool)>>,
    pub node_stakes: Vec<u64>,
    pub cluster_lamports: u64,
    pub ticks_per_slot: u64,
    pub slots_per_epoch: u64,
    pub stakers_slot_offset: u64,
    pub skip_warmup_slots: bool,
    pub native_instruction_processors: Vec<(String, Pubkey)>,
    pub operating_mode: OperatingMode,
    pub poh_config: PohConfig,
}

Fields

validator_configs: Vec<ValidatorConfig>

The validator config that should be applied to every node in the cluster

num_listeners: u64

Number of nodes that are unstaked and not voting (a.k.a listening)

validator_keys: Option<Vec<(Arc<Keypair>, bool)>>

List of tuples (pubkeys, in_genesis) of each node if specified. If in_genesis == true, the validator's vote and stake accounts

node_stakes: Vec<u64>

The stakes of each node

cluster_lamports: u64

The total lamports available to the cluster

ticks_per_slot: u64slots_per_epoch: u64stakers_slot_offset: u64skip_warmup_slots: boolnative_instruction_processors: Vec<(String, Pubkey)>operating_mode: OperatingModepoh_config: PohConfig

Trait Implementations

impl Clone for ClusterConfig[src]

impl Debug for ClusterConfig[src]

impl Default for ClusterConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T[src]

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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

type Owned = T

The resulting type after obtaining ownership.

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> Typeable for T where
    T: Any

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

impl<T> WithSubscriber for T[src]