Struct ckb_tx_pool::TxEntry
source · [−]pub struct TxEntry {
pub rtx: ResolvedTransaction,
pub cycles: Cycle,
pub size: usize,
pub fee: Capacity,
pub ancestors_size: usize,
pub ancestors_fee: Capacity,
pub ancestors_cycles: Cycle,
pub ancestors_count: usize,
pub timestamp: u64,
}
Expand description
An entry in the transaction pool.
Fields
rtx: ResolvedTransaction
Transaction
cycles: Cycle
Cycles
size: usize
tx size
fee: Capacity
fee
ancestors_size: usize
ancestors txs size
ancestors_fee: Capacity
ancestors txs fee
ancestors_cycles: Cycle
ancestors txs cycles
ancestors_count: usize
ancestors txs count
timestamp: u64
The unix timestamp when entering the Txpool, unit: Millisecond
Implementations
Create new transaction pool entry
Create dummy entry from tx, skip resolve
Return related dep out_points
Return reference of transaction
Return proposal_short_id of transaction
Returns a sorted_key
Update ancestor state for add an entry
Update ancestor state for remove an entry
Reset ancestor state by remove
Converts entry to a TxEntryInfo
.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TxEntry
impl UnwindSafe for TxEntry
Blanket Implementations
Mutably borrows from an owned value. Read more