Struct bitcoin_txmempoolentry::TxMemPoolEntry
source · pub struct TxMemPoolEntry { /* private fields */ }Expand description
| \class TxMemPoolEntry | | TxMemPoolEntry stores data about | the corresponding transaction, as | well as data about all in-mempool transactions | that depend on the transaction (“descendant” | transactions). | | When a new entry is added to the mempool, | we update the descendant state (nCountWithDescendants, | nSizeWithDescendants, and nModFeesWithDescendants) | for all ancestors of the newly added | transaction. |
Implementations§
source§impl TxMemPoolEntry
impl TxMemPoolEntry
pub fn get_tx(&self) -> TransactionRef
pub fn get_fee(&self) -> &Amount
pub fn get_tx_weight(&self) -> usize
pub fn get_time(&self) -> OffsetDateTime
pub fn get_height(&self) -> u32
pub fn get_sig_op_cost(&self) -> i64
pub fn get_modified_fee(&self) -> i64
pub fn dynamic_memory_usage(&self) -> usize
pub fn get_lock_points(&self) -> &LockPoints
pub fn get_count_with_descendants(&self) -> u64
pub fn get_size_with_descendants(&self) -> u64
pub fn get_mod_fees_with_descendants(&self) -> Amount
pub fn get_spends_coinbase(&self) -> bool
pub fn get_count_with_ancestors(&self) -> u64
pub fn get_size_with_ancestors(&self) -> u64
pub fn get_mod_fees_with_ancestors(&self) -> Amount
pub fn get_sig_op_cost_with_ancestors(&self) -> i64
pub fn get_mem_pool_parents_const(&self) -> &TxMemPoolEntryParents
pub fn get_mem_pool_children_const(&self) -> &TxMemPoolEntryChildren
pub fn get_mem_pool_parents(&self) -> &mut TxMemPoolEntryParents
pub fn get_mem_pool_children(&self) -> &mut TxMemPoolEntryChildren
sourcepub fn update_descendant_state(
&mut self,
modify_size: i64,
modify_fee: Amount,
modify_count: i64
)
pub fn update_descendant_state( &mut self, modify_size: i64, modify_fee: Amount, modify_count: i64 )
| Adjusts the descendant state. |
sourcepub fn update_ancestor_state(
&mut self,
modify_size: i64,
modify_fee: Amount,
modify_count: i64,
modify_sig_ops: i64
)
pub fn update_ancestor_state( &mut self, modify_size: i64, modify_fee: Amount, modify_count: i64, modify_sig_ops: i64 )
| Adjusts the ancestor state |
pub fn new( tx: &TransactionRef, fee: Amount, time: i64, entry_height: u32, spends_coinbase: bool, sigops_cost: i64, lp: LockPoints ) -> Self
sourcepub fn update_fee_delta(&mut self, new_fee_delta: i64)
pub fn update_fee_delta(&mut self, new_fee_delta: i64)
| Updates the fee delta used for mining | priority score, and the modified fees | with descendants. |
sourcepub fn update_lock_points(&mut self, lp: LockPoints)
pub fn update_lock_points(&mut self, lp: LockPoints)
| Update the LockPoints after a reorg |
pub fn get_tx_size(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for TxMemPoolEntry
impl !Send for TxMemPoolEntry
impl !Sync for TxMemPoolEntry
impl Unpin for TxMemPoolEntry
impl !UnwindSafe for TxMemPoolEntry
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more