Struct solana_local_cluster::local_cluster::ClusterConfig
source · pub struct ClusterConfig {Show 16 fields
pub validator_configs: Vec<ValidatorConfig>,
pub num_listeners: u64,
pub validator_keys: Option<Vec<(Arc<Keypair>, bool)>>,
pub node_stakes: Vec<u64>,
pub node_vote_keys: Option<Vec<Arc<Keypair>>>,
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 cluster_type: ClusterType,
pub poh_config: PohConfig,
pub additional_accounts: Vec<(Pubkey, AccountSharedData)>,
pub tpu_use_quic: bool,
pub tpu_connection_pool_size: usize,
}
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
node_vote_keys: Option<Vec<Arc<Keypair>>>
Optional vote keypairs to use for each node
cluster_lamports: u64
The total lamports available to the cluster
ticks_per_slot: u64
§slots_per_epoch: u64
§stakers_slot_offset: u64
§skip_warmup_slots: bool
§native_instruction_processors: Vec<(String, Pubkey)>
§cluster_type: ClusterType
§poh_config: PohConfig
§additional_accounts: Vec<(Pubkey, AccountSharedData)>
§tpu_use_quic: bool
§tpu_connection_pool_size: usize
Implementations§
source§impl ClusterConfig
impl ClusterConfig
pub fn new_with_equal_stakes( num_nodes: usize, cluster_lamports: u64, lamports_per_node: u64 ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl !UnwindSafe for ClusterConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request