CTxMemPool::ChangeSet

Stages a batch of mempool additions and associated removals to be applied atomically.

Synopsis

Declared in <txmempool.h>

class ChangeSet;

Type Aliases

NameDescription
TxHandle Handle identifying a transaction staged in this changeset.

Member Functions

NameDescription
ChangeSet [constructor]Constructors
~ChangeSet [destructor]Destroy the changeset, aborting any staging that was not applied.
operator= [deleted]Deleted copy assignment; a changeset is not copyable.
Apply Apply the staged removals and additions to the mempool.
CalculateChunksForRBF Calculate the sorted chunks for the old and new mempool relating to the clusters that would be affected by a potential replacement transaction.
CalculateMemPoolAncestors Calculate the in-mempool ancestors of a staged transaction, caching the result.
CheckMemPoolPolicyLimits Check if any cluster limits are exceeded. Returns true if pass, false if fail.
GetAddedTxn Returns the staged added transaction at the given index.
GetAddedTxns Returns the transactions staged for addition, in insertion order.
GetRemovals Returns the set of transactions staged for removal.
GetTxCount Returns the number of transactions staged for addition.
StageAddition Stage a transaction for addition to the mempool.
StageRemoval Stage a transaction for removal from the mempool.

Friends

NameDescription
CTxMemPoolThe node's memory pool of unconfirmed transactions.

Non-Member Functions

NameDescription
::ImprovesFeerateDiagramThe replacement transaction must improve the feerate diagram of the mempool.