5#include <boost/test/unit_test.hpp>
18 std::vector<CTransactionRef>
block_vtx(m_coinbase_txns);
25 std::unordered_map<Txid, CTransaction*, SaltedTxidHasher>
temp_map;
43 +
sizeof(
decltype(
temp_map)::value_type))};
DisconnectedBlockTransactions.
std::vector< CTransactionRef > AddTransactionsFromBlock(const std::vector< CTransactionRef > &vtx)
Add transactions from the block, iterating through vtx in reverse order.
static size_t RecursiveDynamicUsage(const CScript &script)
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END()
static size_t DynamicUsage(const int8_t &v)
Dynamic memory usage for built-in types is zero.
static size_t MallocUsage(size_t alloc)
Compute the total memory used by allocating alloc bytes.
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
Testing fixture that pre-creates a 100-block REGTEST-mode block chain.
BOOST_AUTO_TEST_CASE(disconnectpool_memory_limits)
Tests that DisconnectedBlockTransactions limits its own memory properly.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.