Bitcoin Core  0.19.99
P2P Digital Currency
txid_index Struct Reference

DisconnectedBlockTransactions. More...

#include <txmempool.h>

Detailed Description

DisconnectedBlockTransactions.

During the reorg, it's desirable to re-add previously confirmed transactions to the mempool, so that anything not re-confirmed in the new chain is available to be mined. However, it's more efficient to wait until the reorg is complete and process all still-unconfirmed transactions at that time, since we expect most confirmed transactions to (typically) still be confirmed in the new chain, and re-accepting to the memory pool is expensive (and therefore better to not do in the middle of reorg-processing). Instead, store the disconnected transactions (in order!) as we go, remove any that are included in blocks in the new chain, and then process the remaining still-unconfirmed transactions at the end.

Definition at line 781 of file txmempool.h.


The documentation for this struct was generated from the following file: