#include <txmempool.h>
Definition at line 727 of file txmempool.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()
auto DisconnectedBlockTransactions::getTxInfo |
( |
const CTransactionRef & |
tx | ) |
const |
|
private |
- 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 961 of file txmempool.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()
void DisconnectedBlockTransactions::removeForBlock |
( |
const std::vector< CTransactionRef > & |
vtx | ) |
|
|
inline |
◆ updateMempoolForReorg()
void DisconnectedBlockTransactions::updateMempoolForReorg |
( |
const Config & |
config, |
|
|
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 970 of file txmempool.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: