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

pub struct ClusterConfig {
    pub validator_configs: Vec<ValidatorConfig>,
    pub num_archivers: usize,
    pub num_listeners: u64,
    pub validator_keys: Option<Vec<Arc<Keypair>>>,
    pub node_stakes: Vec<u64>,
    pub cluster_lamports: u64,
    pub ticks_per_slot: u64,
    pub slots_per_epoch: u64,
    pub slots_per_segment: u64,
    pub stakers_slot_offset: u64,
    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_archivers: usize

Number of archivers in the cluster Note- archivers will timeout if ticks_per_slot is much larger than the default 8

num_listeners: u64

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

validator_keys: Option<Vec<Arc<Keypair>>>

The specific pubkeys of each node if specified

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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