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
impl Clone for TxPoolInfo
[src]
impl Clone for TxPoolInfo
[src]fn clone(&self) -> TxPoolInfo
[src]
fn clone(&self) -> TxPoolInfo
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TxPoolInfo
[src]
impl Debug for TxPoolInfo
[src]impl Default for TxPoolInfo
[src]
impl Default for TxPoolInfo
[src]fn default() -> TxPoolInfo
[src]
fn default() -> TxPoolInfo
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for TxPoolInfo
[src]
impl<'de> Deserialize<'de> for TxPoolInfo
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Hash for TxPoolInfo
[src]
impl Hash for TxPoolInfo
[src]impl PartialEq<TxPoolInfo> for TxPoolInfo
[src]
impl PartialEq<TxPoolInfo> for TxPoolInfo
[src]fn eq(&self, other: &TxPoolInfo) -> bool
[src]
fn eq(&self, other: &TxPoolInfo) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TxPoolInfo) -> bool
[src]
fn ne(&self, other: &TxPoolInfo) -> bool
[src]This method tests for !=
.
impl Serialize for TxPoolInfo
[src]
impl Serialize for TxPoolInfo
[src]impl Eq for TxPoolInfo
[src]
impl StructuralEq for TxPoolInfo
[src]
impl StructuralPartialEq for TxPoolInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for TxPoolInfo
impl Send for TxPoolInfo
impl Sync for TxPoolInfo
impl Unpin for TxPoolInfo
impl UnwindSafe for TxPoolInfo
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,