[#DisconnectedBlockTransactions] = DisconnectedBlockTransactions :mrdocs: Transactions removed from the chain during a reorg, held for possible re‐addition to the mempool. == Synopsis Declared in `<kernel/disconnected_transactions.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DisconnectedBlockTransactions; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:DisconnectedBlockTransactions/2constructor.adoc[`DisconnectedBlockTransactions`] [.small]#[constructor]# | Construct the pool with an upper bound on retained memory. | xref:DisconnectedBlockTransactions/2destructor.adoc[`~DisconnectedBlockTransactions`] [.small]#[destructor]# | Destroy the pool and release any retained transactions. | xref:DisconnectedBlockTransactions/AddTransactionsFromBlock.adoc[`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. | xref:DisconnectedBlockTransactions/DynamicMemoryUsage.adoc[`DynamicMemoryUsage`] | Report the dynamic memory currently used by the pool. | xref:DisconnectedBlockTransactions/clear.adoc[`clear`] | Remove all queued transactions and reset the pool. | xref:DisconnectedBlockTransactions/removeForBlock.adoc[`removeForBlock`] | Remove any entries that are in this block. | xref:DisconnectedBlockTransactions/size.adoc[`size`] | Report the number of queued transactions. | xref:DisconnectedBlockTransactions/take.adoc[`take`] | Clear all data structures and return the list of transactions. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#