[#CTxMemPoolEntry] = CTxMemPoolEntry :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class CTxMemPoolEntry : public xref:TxGraph/Ref.adoc[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 [cols="1,4"] |=== | Name| Description | `xref:TxGraph/Ref.adoc[TxGraph::Ref]` | Data type used to reference transactions within a TxGraph. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:CTxMemPoolEntry/CTxMemPoolEntryRef.adoc[`CTxMemPoolEntryRef`] | A reference to a constant mempool entry. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:CTxMemPoolEntry/2constructor-09.adoc[`CTxMemPoolEntry`] [.small]#[constructor]# | Constructors | xref:CTxMemPoolEntry/2destructor.adoc[`~CTxMemPoolEntry`] [.small]#[destructor]# [.small]#[virtual]# | Destroys the mempool entry. | xref:CTxMemPoolEntry/operator_assign-024.adoc[`operator=`] | Assignment operators | xref:CTxMemPoolEntry/DynamicMemoryUsage.adoc[`DynamicMemoryUsage`] | Returns the dynamic memory used by the entry. | xref:CTxMemPoolEntry/GetAdjustedWeight.adoc[`GetAdjustedWeight`] | Returns the sigop‐adjusted weight of the transaction. | xref:CTxMemPoolEntry/GetFee.adoc[`GetFee`] | Returns the fee the transaction paid. | xref:CTxMemPoolEntry/GetHeight.adoc[`GetHeight`] | Returns the chain height when the transaction entered the mempool. | xref:CTxMemPoolEntry/GetLockPoints.adoc[`GetLockPoints`] | Returns the lock points of the transaction. | xref:CTxMemPoolEntry/GetModifiedFee.adoc[`GetModifiedFee`] | Returns the fee adjusted for mining priority. | xref:CTxMemPoolEntry/GetSequence.adoc[`GetSequence`] | Returns the sequence number assigned to the transaction. | xref:CTxMemPoolEntry/GetSharedTx.adoc[`GetSharedTx`] | Returns a shared pointer to the stored transaction. | xref:CTxMemPoolEntry/GetSigOpCost.adoc[`GetSigOpCost`] | Returns the total sigop cost of the transaction. | xref:CTxMemPoolEntry/GetSpendsCoinbase.adoc[`GetSpendsCoinbase`] | Returns whether the transaction spends a coinbase output. | xref:CTxMemPoolEntry/GetTime.adoc[`GetTime`] | Returns the local time when the transaction entered the mempool. | xref:CTxMemPoolEntry/GetTx.adoc[`GetTx`] | Returns the stored transaction. | xref:CTxMemPoolEntry/GetTxSize.adoc[`GetTxSize`] | Returns the virtual size of the transaction. | xref:CTxMemPoolEntry/GetTxWeight.adoc[`GetTxWeight`] | Returns the weight of the transaction. | xref:CTxMemPoolEntry/UpdateLockPoints.adoc[`UpdateLockPoints`] | Updates the lock points after a reorg. | xref:CTxMemPoolEntry/UpdateModifiedFee.adoc[`UpdateModifiedFee`] | Updates the modified fee with the descendant or ancestor delta. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:CTxMemPoolEntry/idx_randomized.adoc[`idx_randomized`] | Index in mempool's txns_randomized |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#