| 41 | }; |
| 42 | |
| 43 | void 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 | |
| 59 | struct TransactionsDelta final : public CValidationInterface { |
| 60 | std::set<CTransactionRef>& m_removed; |
nothing calls this directly
no test coverage detected