MCPcopy Create free account
hub / github.com/ElementsProject/elements / initialize_tx_pool

Function initialize_tx_pool

src/test/fuzz/tx_pool.cpp:43–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43void initialize_tx_pool()
44{
45 static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
46 g_setup = testing_setup.get();
47
48 for (int i = 0; i < 2 * COINBASE_MATURITY; ++i) {
49 CTxIn in = MineBlock(g_setup->m_node, P2WSH_OP_TRUE);
50 // Remember the txids to avoid expensive disk access later on
51 auto& outpoints = i < COINBASE_MATURITY ?
52 g_outpoints_coinbase_init_mature :
53 g_outpoints_coinbase_init_immature;
54 outpoints.push_back(in.prevout);
55 }
56 SyncWithValidationInterfaceQueue();
57}
58
59struct TransactionsDelta final : public CValidationInterface {
60 std::set<CTransactionRef>& m_removed;

Callers

nothing calls this directly

Calls 4

MineBlockFunction · 0.85
getMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected