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

Synopsis

Declared in <txmempool.h>

class ChangeSet;

Type Aliases

Name

Description

TxHandle

Handle identifying a transaction staged in this changeset.

Member Functions

Name

Description

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

Name

Description

CTxMemPool

The node's memory pool of unconfirmed transactions.

Non-Member Functions

Name

Description

::ImprovesFeerateDiagram

The replacement transaction must improve the feerate diagram of the mempool.

Created with MrDocs