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: String
The binary name.
root_dir: PathBuf
The root directory.
data_dir: PathBuf
The data directory.
ancient: PathBuf
freezer files path
tmp_dir: Option<PathBuf>
The directory to store temporary files.
logger: LogConfig
Logger config options.
metrics: MetricsConfig
Metrics options.
Developers can collect metrics for performance tuning and troubleshooting.
memory_tracker: MemoryTrackerConfig
Memory tracker options.
Developers can enable memory tracker to analyze the process memory usage.
chain: ChainConfig
Chain config options.
block_assembler: Option<BlockAssemblerConfig>
Block assembler options.
db: DBConfig
Database config options.
network: NetworkConfig
Network config options.
rpc: RpcConfig
RPC config options.
tx_pool: TxPoolConfig
Tx pool config options.
store: StoreConfig
Store config options.
alert_signature: Option<NetworkAlertConfig>
P2P alert config options.
notify: NotifyConfig
Notify config options.
indexer: IndexerConfig
Indexer config options.
fee_estimator: FeeEstimatorConfig
Fee 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 · 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 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