Struct ckb_jsonrpc_types::TxPoolInfo[][src]

pub struct TxPoolInfo {
    pub tip_hash: H256,
    pub tip_number: BlockNumber,
    pub pending: Uint64,
    pub proposed: Uint64,
    pub orphan: Uint64,
    pub total_tx_size: Uint64,
    pub total_tx_cycles: Uint64,
    pub min_fee_rate: Uint64,
    pub last_txs_updated_at: Timestamp,
}
Expand description

Transaction pool information.

Fields

tip_hash: H256

The associated chain tip block hash.

The transaction pool is stateful. It manages the transactions which are valid to be committed after this block.

tip_number: BlockNumber

The block number of the block tip_hash.

pending: Uint64

Count of transactions in the pending state.

The pending transactions must be proposed in a new block first.

proposed: Uint64

Count of transactions in the proposed state.

The proposed transactions are ready to be committed in the new block after the block tip_hash.

orphan: Uint64

Count of orphan transactions.

An orphan transaction has an input cell from the transaction which is neither in the chain nor in the transaction pool.

total_tx_size: Uint64

Total count of transactions in the pool of all the different kinds of states.

total_tx_cycles: Uint64

Total consumed VM cycles of all the transactions in the pool.

min_fee_rate: Uint64

Fee rate threshold. The pool rejects transactions which fee rate is below this threshold.

The unit is Shannons per 1000 bytes transaction serialization size in the block.

last_txs_updated_at: Timestamp

Last updated time. This is the Unix timestamp in milliseconds.

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

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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.