Struct ckb_tx_pool::TxEntry [−][src]
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,
}Expand description
An entry in the transaction pool.
Fields
rtx: ResolvedTransactionTransaction
cycles: CycleCycles
size: usizetx size
fee: Capacityfee
ancestors_size: usizeancestors txs size
ancestors_fee: Capacityancestors txs fee
ancestors_cycles: Cycleancestors txs cycles
ancestors_count: usizeancestors txs count
Implementations
impl TxEntry[src]
impl TxEntry[src]pub fn new(
rtx: ResolvedTransaction,
cycles: Cycle,
fee: Capacity,
size: usize
) -> Self[src]
pub fn new(
rtx: ResolvedTransaction,
cycles: Cycle,
fee: Capacity,
size: usize
) -> Self[src]Create new transaction pool entry
pub fn dummy_resolve(
tx: TransactionView,
cycles: Cycle,
fee: Capacity,
size: usize
) -> Self[src]
pub fn dummy_resolve(
tx: TransactionView,
cycles: Cycle,
fee: Capacity,
size: usize
) -> Self[src]Create dummy entry from tx, skip resolve
pub fn related_dep_out_points(&self) -> impl Iterator<Item = &OutPoint>[src]
pub fn related_dep_out_points(&self) -> impl Iterator<Item = &OutPoint>[src]Return related dep out_points
pub fn transaction(&self) -> &TransactionView[src]
pub fn transaction(&self) -> &TransactionView[src]Return reference of transaction
pub fn proposal_short_id(&self) -> ProposalShortId[src]
pub fn proposal_short_id(&self) -> ProposalShortId[src]Return proposal_short_id of transaction
pub fn as_sorted_key(&self) -> AncestorsScoreSortKey[src]
pub fn as_sorted_key(&self) -> AncestorsScoreSortKey[src]Returns a sorted_key
pub fn add_entry_weight(&mut self, entry: &TxEntry)[src]
pub fn add_entry_weight(&mut self, entry: &TxEntry)[src]Update ancestor state for add an entry
pub fn sub_entry_weight(&mut self, entry: &TxEntry)[src]
pub fn sub_entry_weight(&mut self, entry: &TxEntry)[src]Update ancestor state for remove an entry
pub fn add_ancestors_weight(&mut self, entry: &TxEntry)[src]
pub fn add_ancestors_weight(&mut self, entry: &TxEntry)[src]Update ancestors to add it as a descendant transaction.
pub fn sub_ancestors_weight(&mut self, entry: &TxEntry)[src]
pub fn sub_ancestors_weight(&mut self, entry: &TxEntry)[src]Update ancestors to remove it.
pub fn to_info(&self) -> TxEntryInfo[src]
pub fn to_info(&self) -> TxEntryInfo[src]Converts entry to a TxEntryInfo.
Trait Implementations
impl Ord for TxEntry[src]
impl Ord for TxEntry[src]impl PartialOrd<TxEntry> for TxEntry[src]
impl PartialOrd<TxEntry> for TxEntry[src]fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq 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> 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> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe 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>,