Struct ckb_app_config::TxPoolConfig [−][src]
pub struct TxPoolConfig {
pub max_mem_size: usize,
pub max_cycles: Cycle,
pub min_fee_rate: FeeRate,
pub max_tx_verify_cycles: Cycle,
pub max_ancestors_count: usize,
pub keep_rejected_tx_hashes_days: u8,
pub keep_rejected_tx_hashes_count: u64,
pub persisted_data: PathBuf,
pub recent_reject: PathBuf,
}Expand description
Transaction pool configuration
Fields
max_mem_size: usizeKeep the transaction pool below <max_mem_size> mb
max_cycles: CycleKeep the transaction pool below <max_cycles> cycles
min_fee_rate: FeeRatetxs with lower fee rate than this will not be relayed or be mined
max_tx_verify_cycles: Cycletx pool rejects txs that cycles greater than max_tx_verify_cycles
max_ancestors_count: usizemax ancestors size limit for a single tx
keep_rejected_tx_hashes_days: u8rejected tx time to live by days
keep_rejected_tx_hashes_count: u64rejected tx count limit
persisted_data: PathBufThe file to persist the tx pool on the disk when tx pool have been shutdown.
By default, it is a subdirectory of ‘tx-pool’ subdirectory under the data directory.
recent_reject: PathBufThe recent reject record database directory path.
By default, it is a subdirectory of ‘tx-pool’ subdirectory under the data directory.
Implementations
Canonicalizes paths in the config options.
If self.persisted_data is not set, set it to data_dir / tx_pool_persisted_data.
If self.path is relative, convert them to absolute path using
root_dir as current working directory.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TxPoolConfig
impl Send for TxPoolConfig
impl Sync for TxPoolConfig
impl Unpin for TxPoolConfig
impl UnwindSafe for TxPoolConfig
Blanket Implementations
Mutably borrows from an owned value. Read more