#include <disconnected_transactions.h>
Definition at line 45 of file disconnected_transactions.h.
◆ indexed_disconnected_transactions
◆ TxInfoMap
◆ ~DisconnectedBlockTransactions()
DisconnectedBlockTransactions::~DisconnectedBlockTransactions |
( |
| ) |
|
|
inline |
◆ addForBlock()
◆ addTransaction()
void DisconnectedBlockTransactions::addTransaction |
( |
const CTransactionRef & |
tx | ) |
|
|
inlineprivate |
◆ clear()
void DisconnectedBlockTransactions::clear |
( |
| ) |
|
|
inline |
◆ DynamicMemoryUsage()
size_t DisconnectedBlockTransactions::DynamicMemoryUsage |
( |
| ) |
const |
|
inline |
◆ GetQueuedTx()
◆ getTxInfo()
- Returns
- a pointer into the txInfo map if tx->GetId() exists in the map, or nullptr otherwise. Note that the returned pointer is only valid for as long as its underlying map node is valid.
Definition at line 20 of file disconnected_transactions.cpp.
◆ importMempool()
void DisconnectedBlockTransactions::importMempool |
( |
CTxMemPool & |
pool | ) |
|
◆ isEmpty()
bool DisconnectedBlockTransactions::isEmpty |
( |
| ) |
const |
|
inline |
◆ removeEntry()
void DisconnectedBlockTransactions::removeEntry |
( |
indexed_disconnected_transactions::index< insertion_order >::type::iterator |
entry | ) |
|
|
inline |
◆ removeForBlock() [1/2]
void DisconnectedBlockTransactions::removeForBlock |
( |
const std::vector< CTransactionRef > & |
vtx | ) |
|
|
inline |
◆ removeForBlock() [2/2]
◆ updateMempoolForReorg()
void DisconnectedBlockTransactions::updateMempoolForReorg |
( |
Chainstate & |
active_chainstate, |
|
|
bool |
fAddToMempool, |
|
|
CTxMemPool & |
pool |
|
) |
| |
Make mempool consistent after a reorg, by re-adding or recursively erasing disconnected block transactions from the mempool, and also removing any other transactions from the mempool that are no longer valid given the new tip/height.
Note: we assume that disconnectpool only contains transactions that are NOT confirmed in the current chain nor already in the mempool (otherwise, in-mempool descendants of such transactions would be removed).
Passing fAddToMempool=false will skip trying to add the transactions back, and instead just erase from the mempool as needed.
Definition at line 174 of file disconnected_transactions.cpp.
◆ cachedInnerUsage
uint64_t DisconnectedBlockTransactions::cachedInnerUsage = 0 |
|
private |
◆ cs
void pool DisconnectedBlockTransactions::cs |
◆ queuedTx
◆ txInfo
TxInfoMap DisconnectedBlockTransactions::txInfo |
|
private |
The documentation for this class was generated from the following files: