Struct ckb_tx_pool::pool::TxPool[][src]

pub struct TxPool { /* fields omitted */ }
Expand description

Tx-pool implementation

Implementations

Create new TxPool

Tx-pool owned snapshot, it may not consistent with chain cause tx-pool update snapshot asynchronously

Makes a clone of the Arc

Tx-pool information

Whether Tx-pool reach size limit

Whether Tx-pool reach cycles limit

Update size and cycles statics for add tx

Update size and cycles statics for remove tx cycles overflow is possible, currently obtaining cycles is not accurate

Add tx to pending pool If did have this value present, false is returned.

Add tx which proposed but still uncommittable to gap pool

Add tx to proposed pool

Get last txs in tx-pool update timestamp

Returns true if the tx-pool contains a tx with specified id.

Returns tx with cycles corresponding to the id.

Returns tx corresponding to the id.

Returns tx exclude conflict corresponding to the id. RPC

Get to-be-proposal transactions that may be included in the next block.

Returns tx from tx-pool or storage corresponding to the id.

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 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.