[−][src]Struct ckb_tx_pool::TxEntry
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 (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]
tx: TransactionView,
cycles: Cycle,
fee: Capacity,
size: usize,
related_out_points: Vec<OutPoint>
) -> Self
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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TxEntry
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TxEntry> for TxEntry
[src]
impl PartialOrd<TxEntry> for TxEntry
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,