CTxMemPoolEntry

CTxMemPoolEntry stores data about the corresponding transaction, as well as data about all in-mempool transactions that depend on the transaction ("descendant" transactions).

Synopsis

Declared in <kernel/mempool_entry.h>

class CTxMemPoolEntry
    : public TxGraph::Ref

Description

When a new entry is added to the mempool, we update the descendant state (m_count_with_descendants, nSizeWithDescendants, and nModFeesWithDescendants) for all ancestors of the newly added transaction.

Base Classes

NameDescription
TxGraph::RefData type used to reference transactions within a TxGraph.

Type Aliases

NameDescription
CTxMemPoolEntryRef A reference to a constant mempool entry.

Member Functions

NameDescription
CTxMemPoolEntry [constructor]Constructors
~CTxMemPoolEntry [destructor] [virtual]Destroys the mempool entry.
operator= Assignment operators
DynamicMemoryUsage Returns the dynamic memory used by the entry.
GetAdjustedWeight Returns the sigop-adjusted weight of the transaction.
GetFee Returns the fee the transaction paid.
GetHeight Returns the chain height when the transaction entered the mempool.
GetLockPoints Returns the lock points of the transaction.
GetModifiedFee Returns the fee adjusted for mining priority.
GetSequence Returns the sequence number assigned to the transaction.
GetSharedTx Returns a shared pointer to the stored transaction.
GetSigOpCost Returns the total sigop cost of the transaction.
GetSpendsCoinbase Returns whether the transaction spends a coinbase output.
GetTime Returns the local time when the transaction entered the mempool.
GetTx Returns the stored transaction.
GetTxSize Returns the virtual size of the transaction.
GetTxWeight Returns the weight of the transaction.
UpdateLockPoints Updates the lock points after a reorg.
UpdateModifiedFee Updates the modified fee with the descendant or ancestor delta.

Data Members

NameDescription
idx_randomized Index in mempool's txns_randomized