33 std::vector<CTransactionRef>
evicted;
67 for (
const auto& tx : vtx) {
87 std::list<CTransactionRef>
ret = std::move(
queuedTx);
std::unordered_map< Txid, TxList::iterator, SaltedTxidHasher > iters_by_txid
std::list< CTransactionRef > take()
Clear all data structures and return the list of transactions.
~DisconnectedBlockTransactions()
void removeForBlock(const std::vector< CTransactionRef > &vtx)
Remove any entries that are in this block.
uint64_t cachedInnerUsage
Cached dynamic memory usage for the CTransactionRefs.
size_t DynamicMemoryUsage() const
std::vector< CTransactionRef > LimitMemoryUsage()
Trim the earliest-added entries until we are within memory bounds.
std::vector< CTransactionRef > AddTransactionsFromBlock(const std::vector< CTransactionRef > &vtx)
Add transactions from the block, iterating through vtx in reverse order.
const size_t m_max_mem_usage
std::list< CTransactionRef > queuedTx
static size_t RecursiveDynamicUsage(const CScript &script)
static size_t DynamicUsage(const int8_t &v)
Dynamic memory usage for built-in types is zero.
consteval auto _(util::TranslatedLiteral str)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.