Transactions removed from the chain during a reorg, held for possible re‐addition to the mempool.

Synopsis

Declared in <kernel/disconnected_transactions.h>

class DisconnectedBlockTransactions;

Member Functions

Name

Description

DisconnectedBlockTransactions [constructor]

Construct the pool with an upper bound on retained memory.

~DisconnectedBlockTransactions [destructor]

Destroy the pool and release any retained transactions.

AddTransactionsFromBlock

Add transactions from the block, iterating through vtx in reverse order. Callers should call this function for blocks in descending order by block height. We assume that callers never pass multiple transactions with the same txid, otherwise things can go very wrong in removeForBlock due to queuedTx containing an item without a corresponding entry in iters_by_txid.

DynamicMemoryUsage

Report the dynamic memory currently used by the pool.

clear

Remove all queued transactions and reset the pool.

removeForBlock

Remove any entries that are in this block.

size

Report the number of queued transactions.

take

Clear all data structures and return the list of transactions.

Created with MrDocs