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,
socket_addr_space: SocketAddrSpace
) -> Self
pub fn add_validator(
&mut self,
validator_config: &ValidatorConfig,
stake: u64,
validator_keypair: Arc<Keypair>,
voting_keypair: Option<Arc<Keypair>>,
socket_addr_space: SocketAddrSpace
) -> Pubkey
pub fn check_for_new_roots(
&self,
num_new_roots: usize,
test_name: &str,
socket_addr_space: SocketAddrSpace
)
pub fn check_no_new_roots(
&self,
num_slots_to_wait: usize,
test_name: &str,
socket_addr_space: SocketAddrSpace
)
Trait Implementations
fn get_node_pubkeys(&self) -> Vec<Pubkey>ⓘ
fn create_restart_context(
&mut self,
pubkey: &Pubkey,
cluster_validator_info: &mut ClusterValidatorInfo
) -> (Node, Option<ContactInfo>)
fn restart_node(
&mut self,
pubkey: &Pubkey,
cluster_validator_info: ClusterValidatorInfo,
socket_addr_space: SocketAddrSpace
)
fn restart_node_with_context(
cluster_validator_info: ClusterValidatorInfo,
(node, entry_point_info): (Node, Option<ContactInfo>),
socket_addr_space: SocketAddrSpace
) -> ClusterValidatorInfo
fn exit_restart_node(
&mut self,
pubkey: &Pubkey,
validator_config: ValidatorConfig,
socket_addr_space: SocketAddrSpace
)
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
Wrap the input message T
in a tonic::Request
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