pub struct CKBAppConfig {Show 19 fields
pub bin_name: String,
pub root_dir: PathBuf,
pub data_dir: PathBuf,
pub ancient: PathBuf,
pub tmp_dir: Option<PathBuf>,
pub logger: LogConfig,
pub metrics: MetricsConfig,
pub memory_tracker: MemoryTrackerConfig,
pub chain: ChainConfig,
pub block_assembler: Option<BlockAssemblerConfig>,
pub db: DBConfig,
pub network: NetworkConfig,
pub rpc: RpcConfig,
pub tx_pool: TxPoolConfig,
pub store: StoreConfig,
pub alert_signature: Option<NetworkAlertConfig>,
pub notify: NotifyConfig,
pub indexer: IndexerConfig,
pub fee_estimator: FeeEstimatorConfig,
}Expand description
The main config file for the most subcommands. Usually it is the ckb.toml in the CKB root
directory.
Attention: Changing the order of fields will break integration test, see module doc.
Fields§
§bin_name: StringThe binary name.
root_dir: PathBufThe root directory.
data_dir: PathBufThe data directory.
ancient: PathBuffreezer files path
tmp_dir: Option<PathBuf>The directory to store temporary files.
logger: LogConfigLogger config options.
metrics: MetricsConfigMetrics options.
Developers can collect metrics for performance tuning and troubleshooting.
memory_tracker: MemoryTrackerConfigMemory tracker options.
Developers can enable memory tracker to analyze the process memory usage.
chain: ChainConfigChain config options.
block_assembler: Option<BlockAssemblerConfig>Block assembler options.
db: DBConfigDatabase config options.
network: NetworkConfigNetwork config options.
rpc: RpcConfigRPC config options.
tx_pool: TxPoolConfigTx pool config options.
store: StoreConfigStore config options.
alert_signature: Option<NetworkAlertConfig>P2P alert config options.
notify: NotifyConfigNotify config options.
indexer: IndexerConfigIndexer config options.
fee_estimator: FeeEstimatorConfigFee estimator config options.
Implementations§
Source§impl CKBAppConfig
impl CKBAppConfig
Sourcepub fn load_from_slice(slice: &[u8]) -> Result<Self, ExitCode>
pub fn load_from_slice(slice: &[u8]) -> Result<Self, ExitCode>
Load a new instance from a file
Trait Implementations§
Source§impl Clone for CKBAppConfig
impl Clone for CKBAppConfig
Source§fn clone(&self) -> CKBAppConfig
fn clone(&self) -> CKBAppConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CKBAppConfig
impl Debug for CKBAppConfig
Auto Trait Implementations§
impl !Freeze for CKBAppConfig
impl RefUnwindSafe for CKBAppConfig
impl Send for CKBAppConfig
impl Sync for CKBAppConfig
impl Unpin for CKBAppConfig
impl UnsafeUnpin for CKBAppConfig
impl UnwindSafe for CKBAppConfig
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more