Struct solana_local_cluster::local_cluster::LocalCluster [−][src]
pub struct LocalCluster { pub funding_keypair: Keypair, pub entry_point_info: ContactInfo, pub validators: HashMap<Pubkey, ClusterValidatorInfo>, pub genesis_config: GenesisConfig, }
Fields
funding_keypair: Keypair
Keypair with funding to participate in the network
entry_point_info: ContactInfo
Entry point from which the rest of the network can be discovered
validators: HashMap<Pubkey, ClusterValidatorInfo>
genesis_config: GenesisConfig
Implementations
pub fn new_with_equal_stakes(
num_nodes: usize,
cluster_lamports: u64,
lamports_per_node: u64
) -> Self
pub fn add_validator(
&mut self,
validator_config: &ValidatorConfig,
stake: u64,
validator_keypair: Arc<Keypair>,
voting_keypair: Option<Arc<Keypair>>
) -> Pubkey
Trait Implementations
fn create_restart_context(
&mut self,
pubkey: &Pubkey,
cluster_validator_info: &mut ClusterValidatorInfo
) -> (Node, Option<ContactInfo>)
fn restart_node_with_context(
cluster_validator_info: ClusterValidatorInfo,
(node, entry_point_info): (Node, Option<ContactInfo>)
) -> ClusterValidatorInfo
Auto Trait Implementations
impl !RefUnwindSafe for LocalCluster
impl Send for LocalCluster
impl Sync for LocalCluster
impl Unpin for LocalCluster
impl !UnwindSafe for LocalCluster
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more