Struct ckb_jsonrpc_types::TxPoolInfo
source · [−]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: H256The 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: BlockNumberThe block number of the block tip_hash.
pending: Uint64Count of transactions in the pending state.
The pending transactions must be proposed in a new block first.
proposed: Uint64Count of transactions in the proposed state.
The proposed transactions are ready to be committed in the new block after the block
tip_hash.
orphan: Uint64Count 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: Uint64Total count of transactions in the pool of all the different kinds of states (excluding orphan transactions).
total_tx_cycles: Uint64Total consumed VM cycles of all the transactions in the pool (excluding orphan transactions).
min_fee_rate: Uint64Fee 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: TimestampLast updated time. This is the Unix timestamp in milliseconds.
Trait Implementations
sourceimpl Clone for TxPoolInfo
impl Clone for TxPoolInfo
sourcefn clone(&self) -> TxPoolInfo
fn clone(&self) -> TxPoolInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TxPoolInfo
impl Debug for TxPoolInfo
sourceimpl Default for TxPoolInfo
impl Default for TxPoolInfo
sourcefn default() -> TxPoolInfo
fn default() -> TxPoolInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TxPoolInfo
impl<'de> Deserialize<'de> for TxPoolInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for TxPoolInfo
impl Hash for TxPoolInfo
sourceimpl PartialEq<TxPoolInfo> for TxPoolInfo
impl PartialEq<TxPoolInfo> for TxPoolInfo
sourcefn eq(&self, other: &TxPoolInfo) -> bool
fn eq(&self, other: &TxPoolInfo) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TxPoolInfo) -> bool
fn ne(&self, other: &TxPoolInfo) -> bool
This method tests for !=.
sourceimpl Serialize for TxPoolInfo
impl Serialize for TxPoolInfo
impl Eq for TxPoolInfo
impl StructuralEq for TxPoolInfo
impl StructuralPartialEq for TxPoolInfo
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more