pub struct NodeConfig { /* private fields */ }Expand description
A node configuration, with fine-grained configuration options.
Implementations§
Source§impl NodeConfig
impl NodeConfig
Sourcepub fn subcommand(&self) -> Option<&Command>
pub fn subcommand(&self) -> Option<&Command>
Subcommand to run the node.
Sourcepub fn is_validator(&self) -> bool
pub fn is_validator(&self) -> bool
Whether the node is a validator.
Sourcepub fn is_invulnerable(&self) -> bool
pub fn is_invulnerable(&self) -> bool
Whether the node keys must be added to invulnerables.
Sourcepub fn is_bootnode(&self) -> bool
pub fn is_bootnode(&self) -> bool
Whether the node is a bootnode.
Sourcepub fn initial_balance(&self) -> u128
pub fn initial_balance(&self) -> u128
Node initial balance present in genesis.
Sourcepub fn env(&self) -> Vec<&EnvVar>
pub fn env(&self) -> Vec<&EnvVar>
Environment variables to set (inside pod for podman/k8s, inside shell for native).
Sourcepub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
pub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
List of node’s bootnodes addresses to use.
Sourcepub fn prometheus_port(&self) -> Option<u16>
pub fn prometheus_port(&self) -> Option<u16>
Prometheus port to use.
Sourcepub fn p2p_cert_hash(&self) -> Option<&str>
pub fn p2p_cert_hash(&self) -> Option<&str>
libp2p cert hash to use with WebRTC transport.
Sourcepub fn db_snapshot(&self) -> Option<&AssetLocation>
pub fn db_snapshot(&self) -> Option<&AssetLocation>
Database snapshot.
Sourcepub fn node_log_path(&self) -> Option<&PathBuf>
pub fn node_log_path(&self) -> Option<&PathBuf>
Node log path
Sourcepub fn keystore_path(&self) -> Option<&PathBuf>
pub fn keystore_path(&self) -> Option<&PathBuf>
Keystore path
Sourcepub fn override_eth_key(&self) -> Option<&str>
pub fn override_eth_key(&self) -> Option<&str>
Override EVM session key to use for the node
Sourcepub fn keystore_key_types(&self) -> Vec<&str>
pub fn keystore_key_types(&self) -> Vec<&str>
Keystore key types to generate. Returns the list of key type specifications (short form like “audi” or long form like “audi_sr”).
Sourcepub fn chain_spec_key_types(&self) -> Vec<&str>
pub fn chain_spec_key_types(&self) -> Vec<&str>
Chain spec session key types to inject. Returns the list of key type specifications (short form like “aura” or long form like “aura_sr”).
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more