MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / initialize_tx_pool

Function initialize_tx_pool

src/test/fuzz/package_eval.cpp:65–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65void initialize_tx_pool()
66{
67 static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
68 g_setup = testing_setup.get();
69 SetMockTime(WITH_LOCK(g_setup->m_node.chainman->GetMutex(), return g_setup->m_node.chainman->ActiveTip()->Time()));
70
71 for (int i = 0; i < 2 * COINBASE_MATURITY; ++i) {
72 COutPoint prevout{MineBlock(g_setup->m_node, {
73 .coinbase_output_script = P2WSH_EMPTY,
74 })};
75 if (i < COINBASE_MATURITY) {
76 // Remember the txids to avoid expensive disk access later on
77 g_outpoints_coinbase_init_mature.push_back(prevout);
78 }
79 }
80 g_setup->m_node.validation_signals->SyncWithValidationInterfaceQueue();
81}
82
83struct OutpointsUpdater final : public CValidationInterface {
84 std::set<COutPoint>& m_mempool_outpoints;

Callers

nothing calls this directly

Calls 6

SetMockTimeFunction · 0.85
MineBlockFunction · 0.85
getMethod · 0.45
TimeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected