[][src]Struct ckb_tx_pool::TxEntry

pub struct TxEntry {
    pub transaction: TransactionView,
    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 related_out_points: Vec<OutPoint>,
}

An entry in the transaction pool.

Fields

transaction: TransactionView

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

related_out_points: Vec<OutPoint>

related out points (cell deps includes cell group itself)

Implementations

impl TxEntry[src]

pub fn new(
    tx: TransactionView,
    cycles: Cycle,
    fee: Capacity,
    size: usize,
    related_out_points: Vec<OutPoint>
) -> Self
[src]

Create new transaction pool entry

pub fn as_sorted_key(&self) -> AncestorsScoreSortKey[src]

pub fn add_entry_weight(&mut self, entry: &TxEntry)[src]

pub fn sub_entry_weight(&mut self, entry: &TxEntry)[src]

pub fn add_ancestors_weight(&mut self, entry: &TxEntry)[src]

pub fn sub_ancestors_weight(&mut self, entry: &TxEntry)[src]

Trait Implementations

impl Clone for TxEntry[src]

impl Debug for TxEntry[src]

impl Eq for TxEntry[src]

impl Hash for TxEntry[src]

impl Ord for TxEntry[src]

impl PartialEq<TxEntry> for TxEntry[src]

impl PartialOrd<TxEntry> for TxEntry[src]

impl StructuralEq for TxEntry[src]

Auto Trait Implementations

impl RefUnwindSafe for TxEntry

impl Send for TxEntry

impl Sync for TxEntry

impl Unpin for TxEntry

impl UnwindSafe for TxEntry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,