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: usize

Keep the transaction pool below <max_mem_size> mb

max_cycles: Cycle

Keep the transaction pool below <max_cycles> cycles

min_fee_rate: FeeRate

txs with lower fee rate than this will not be relayed or be mined

max_tx_verify_cycles: Cycle

tx pool rejects txs that cycles greater than max_tx_verify_cycles

max_ancestors_count: usize

max ancestors size limit for a single tx

keep_rejected_tx_hashes_days: u8

rejected tx time to live by days

keep_rejected_tx_hashes_count: u64

rejected tx count limit

persisted_data: PathBuf

The 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: PathBuf

The 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.