[][src]Struct tari_common::configuration::global::GlobalConfig

pub struct GlobalConfig {
    pub network: Network,
    pub comms_transport: CommsTransport,
    pub allow_test_addresses: bool,
    pub listnener_liveness_max_sessions: usize,
    pub listener_liveness_allowlist_cidrs: Vec<String>,
    pub data_dir: PathBuf,
    pub db_type: DatabaseType,
    pub db_config: LMDBConfig,
    pub orphan_storage_capacity: usize,
    pub orphan_db_clean_out_threshold: usize,
    pub pruning_horizon: u64,
    pub pruned_mode_cleanup_interval: u64,
    pub core_threads: Option<usize>,
    pub max_threads: Option<usize>,
    pub base_node_identity_file: PathBuf,
    pub public_address: Multiaddr,
    pub grpc_enabled: bool,
    pub grpc_base_node_address: SocketAddr,
    pub grpc_console_wallet_address: SocketAddr,
    pub peer_seeds: Vec<String>,
    pub dns_seeds: Vec<String>,
    pub dns_seeds_name_server: SocketAddr,
    pub dns_seeds_use_dnssec: bool,
    pub peer_db_path: PathBuf,
    pub enable_mining: bool,
    pub enable_wallet: bool,
    pub num_mining_threads: usize,
    pub base_node_tor_identity_file: PathBuf,
    pub wallet_db_file: PathBuf,
    pub console_wallet_db_file: PathBuf,
    pub wallet_identity_file: PathBuf,
    pub console_wallet_identity_file: PathBuf,
    pub wallet_tor_identity_file: PathBuf,
    pub console_wallet_tor_identity_file: PathBuf,
    pub wallet_peer_db_path: PathBuf,
    pub console_wallet_peer_db_path: PathBuf,
    pub buffer_size_base_node: usize,
    pub buffer_size_base_node_wallet: usize,
    pub buffer_rate_limit_base_node: usize,
    pub buffer_rate_limit_base_node_wallet: usize,
    pub fetch_blocks_timeout: Duration,
    pub fetch_utxos_timeout: Duration,
    pub service_request_timeout: Duration,
    pub base_node_query_timeout: Duration,
    pub transaction_broadcast_monitoring_timeout: Duration,
    pub transaction_chain_monitoring_timeout: Duration,
    pub transaction_direct_send_timeout: Duration,
    pub transaction_broadcast_send_timeout: Duration,
    pub console_wallet_password: Option<String>,
    pub wallet_command_send_wait_stage: String,
    pub wallet_command_send_wait_timeout: u64,
    pub wallet_base_node_service_peers: Vec<String>,
    pub wallet_base_node_service_refresh_interval: u64,
    pub wallet_base_node_service_request_max_age: u64,
    pub prevent_fee_gt_amount: bool,
    pub monerod_url: String,
    pub monerod_username: String,
    pub monerod_password: String,
    pub monerod_use_auth: bool,
    pub proxy_host_address: SocketAddr,
    pub force_sync_peers: Vec<String>,
    pub wait_for_initial_sync_at_startup: bool,
    pub max_randomx_vms: usize,
}

Fields

network: Networkcomms_transport: CommsTransportallow_test_addresses: boollistnener_liveness_max_sessions: usizelistener_liveness_allowlist_cidrs: Vec<String>data_dir: PathBufdb_type: DatabaseTypedb_config: LMDBConfigorphan_storage_capacity: usizeorphan_db_clean_out_threshold: usizepruning_horizon: u64pruned_mode_cleanup_interval: u64core_threads: Option<usize>max_threads: Option<usize>base_node_identity_file: PathBufpublic_address: Multiaddrgrpc_enabled: boolgrpc_base_node_address: SocketAddrgrpc_console_wallet_address: SocketAddrpeer_seeds: Vec<String>dns_seeds: Vec<String>dns_seeds_name_server: SocketAddrdns_seeds_use_dnssec: boolpeer_db_path: PathBufenable_mining: boolenable_wallet: boolnum_mining_threads: usizebase_node_tor_identity_file: PathBufwallet_db_file: PathBufconsole_wallet_db_file: PathBufwallet_identity_file: PathBufconsole_wallet_identity_file: PathBufwallet_tor_identity_file: PathBufconsole_wallet_tor_identity_file: PathBufwallet_peer_db_path: PathBufconsole_wallet_peer_db_path: PathBufbuffer_size_base_node: usizebuffer_size_base_node_wallet: usizebuffer_rate_limit_base_node: usizebuffer_rate_limit_base_node_wallet: usizefetch_blocks_timeout: Durationfetch_utxos_timeout: Durationservice_request_timeout: Durationbase_node_query_timeout: Durationtransaction_broadcast_monitoring_timeout: Durationtransaction_chain_monitoring_timeout: Durationtransaction_direct_send_timeout: Durationtransaction_broadcast_send_timeout: Durationconsole_wallet_password: Option<String>wallet_command_send_wait_stage: Stringwallet_command_send_wait_timeout: u64wallet_base_node_service_peers: Vec<String>wallet_base_node_service_refresh_interval: u64wallet_base_node_service_request_max_age: u64prevent_fee_gt_amount: boolmonerod_url: Stringmonerod_username: Stringmonerod_password: Stringmonerod_use_auth: boolproxy_host_address: SocketAddrforce_sync_peers: Vec<String>wait_for_initial_sync_at_startup: boolmax_randomx_vms: usize

Implementations

impl GlobalConfig[src]

Trait Implementations

impl Clone for GlobalConfig[src]

impl Debug for GlobalConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,