Struct solana_core::validator::Validator
source · pub struct Validator {
pub cluster_info: Arc<ClusterInfo>,
pub bank_forks: Arc<RwLock<BankForks>>,
pub blockstore: Arc<Blockstore>,
/* private fields */
}
Fields§
§cluster_info: Arc<ClusterInfo>
§bank_forks: Arc<RwLock<BankForks>>
§blockstore: Arc<Blockstore>
Implementations§
source§impl Validator
impl Validator
pub fn new( node: Node, identity_keypair: Arc<Keypair>, ledger_path: &Path, vote_account: &Pubkey, authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>, cluster_entrypoints: Vec<ContactInfo>, config: &ValidatorConfig, should_check_duplicate_instance: bool, rpc_to_plugin_manager_receiver: Option<Receiver<GeyserPluginManagerRequest>>, start_progress: Arc<RwLock<ValidatorStartProgress>>, socket_addr_space: SocketAddrSpace, use_quic: bool, tpu_connection_pool_size: usize, tpu_enable_udp: bool, admin_rpc_service_post_init: Arc<RwLock<Option<AdminRpcRequestMetadataPostInit>>> ) -> Result<Self, String>
pub fn exit(&mut self)
pub fn close(self)
pub fn join(self)
Auto Trait Implementations§
impl !RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl !UnwindSafe for Validator
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