Struct grin_servers::common::types::ServerConfig
source · pub struct ServerConfig {Show 19 fields
pub db_root: String,
pub api_http_addr: String,
pub api_secret_path: Option<String>,
pub foreign_api_secret_path: Option<String>,
pub tls_certificate_file: Option<String>,
pub tls_certificate_key: Option<String>,
pub chain_type: ChainTypes,
pub future_time_limit: u64,
pub chain_validation_mode: ChainValidationMode,
pub archive_mode: Option<bool>,
pub skip_sync_wait: Option<bool>,
pub run_tui: Option<bool>,
pub run_test_miner: Option<bool>,
pub test_miner_wallet_url: Option<String>,
pub p2p_config: P2PConfig,
pub pool_config: PoolConfig,
pub dandelion_config: DandelionConfig,
pub stratum_mining_config: Option<StratumServerConfig>,
pub webhook_config: WebHooksConfig,
}
Expand description
Full server configuration, aggregating configurations required for the different components.
Fields§
§db_root: String
Directory under which the rocksdb stores will be created
api_http_addr: String
Network address for the Rest API HTTP server.
api_secret_path: Option<String>
Location of secret for basic auth on Rest API HTTP and V2 Owner API server.
foreign_api_secret_path: Option<String>
Location of secret for basic auth on v2 Foreign API server.
tls_certificate_file: Option<String>
TLS certificate file
tls_certificate_key: Option<String>
TLS certificate private key file
chain_type: ChainTypes
Setup the server for tests, testnet or mainnet
future_time_limit: u64
Future Time Limit
chain_validation_mode: ChainValidationMode
Automatically run full chain validation during normal block processing?
archive_mode: Option<bool>
Whether this node is a full archival node or a fast-sync, pruned node
skip_sync_wait: Option<bool>
Whether to skip the sync timeout on startup (To assist testing on solo chains)
run_tui: Option<bool>
Whether to run the TUI if enabled, this will disable logging to stdout
run_test_miner: Option<bool>
Whether to run the test miner (internal, cuckoo 16)
test_miner_wallet_url: Option<String>
Test miner wallet URL
p2p_config: P2PConfig
Configuration for the peer-to-peer server
pool_config: PoolConfig
Transaction pool configuration
dandelion_config: DandelionConfig
Dandelion configuration
stratum_mining_config: Option<StratumServerConfig>
Configuration for the mining daemon
webhook_config: WebHooksConfig
Configuration for the webhooks that trigger on certain events
Trait Implementations§
source§impl Clone for ServerConfig
impl Clone for ServerConfig
source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServerConfig
impl Debug for ServerConfig
source§impl Default for ServerConfig
impl Default for ServerConfig
source§fn default() -> ServerConfig
fn default() -> ServerConfig
source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for ServerConfig
impl PartialEq for ServerConfig
source§fn eq(&self, other: &ServerConfig) -> bool
fn eq(&self, other: &ServerConfig) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServerConfig
impl Serialize for ServerConfig
impl StructuralPartialEq for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations§
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Box
behind a trait object of this trait.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Box
behind a trait object of this trait.