[#CTxMemPool-ChangeSet] = xref:CTxMemPool.adoc[CTxMemPool]::ChangeSet :relfileprefix: ../ :mrdocs: Stages a batch of mempool additions and associated removals to be applied atomically. == Synopsis Declared in `<txmempool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ChangeSet; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:CTxMemPool/ChangeSet/TxHandle.adoc[`TxHandle`] | Handle identifying a transaction staged in this changeset. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:CTxMemPool/ChangeSet/2constructor-03.adoc[`ChangeSet`] [.small]#[constructor]# | Constructors | xref:CTxMemPool/ChangeSet/2destructor.adoc[`~ChangeSet`] [.small]#[destructor]# | Destroy the changeset, aborting any staging that was not applied. | xref:CTxMemPool/ChangeSet/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Deleted copy assignment; a changeset is not copyable. | xref:CTxMemPool/ChangeSet/Apply.adoc[`Apply`] | Apply the staged removals and additions to the mempool. | xref:CTxMemPool/ChangeSet/CalculateChunksForRBF.adoc[`CalculateChunksForRBF`] | Calculate the sorted chunks for the old and new mempool relating to the clusters that would be affected by a potential replacement transaction. | xref:CTxMemPool/ChangeSet/CalculateMemPoolAncestors.adoc[`CalculateMemPoolAncestors`] | Calculate the in‐mempool ancestors of a staged transaction, caching the result. | xref:CTxMemPool/ChangeSet/CheckMemPoolPolicyLimits.adoc[`CheckMemPoolPolicyLimits`] | Check if any cluster limits are exceeded. Returns true if pass, false if fail. | xref:CTxMemPool/ChangeSet/GetAddedTxn.adoc[`GetAddedTxn`] | Returns the staged added transaction at the given index. | xref:CTxMemPool/ChangeSet/GetAddedTxns.adoc[`GetAddedTxns`] | Returns the transactions staged for addition, in insertion order. | xref:CTxMemPool/ChangeSet/GetRemovals.adoc[`GetRemovals`] | Returns the set of transactions staged for removal. | xref:CTxMemPool/ChangeSet/GetTxCount.adoc[`GetTxCount`] | Returns the number of transactions staged for addition. | xref:CTxMemPool/ChangeSet/StageAddition.adoc[`StageAddition`] | Stage a transaction for addition to the mempool. | xref:CTxMemPool/ChangeSet/StageRemoval.adoc[`StageRemoval`] | Stage a transaction for removal from the mempool. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:CTxMemPool.adoc[CTxMemPool]` | The node's memory pool of unconfirmed transactions. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:ImprovesFeerateDiagram.adoc[`::ImprovesFeerateDiagram`] | The replacement transaction must improve the feerate diagram of the mempool. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#