These CTransactionRefs can be const if you like.
0@@ -167,9 +168,9 @@ BOOST_FIXTURE_TEST_CASE(rbf_helper_functions, TestChain100Setup)
1 // Tests for GetEntriesForConflicts
2 CTxMemPool::setEntries all_parents{entry1, entry3, entry5, entry7, entry8};
3 CTxMemPool::setEntries all_children{entry2, entry4, entry6};
4- std::vector<CTransactionRef> parent_inputs({m_coinbase_txns[0], m_coinbase_txns[1], m_coinbase_txns[2],
5+ const std::vector<CTransactionRef> parent_inputs({m_coinbase_txns[0], m_coinbase_txns[1], m_coinbase_txns[2],
6 m_coinbase_txns[3], m_coinbase_txns[4]});
7- CTransactionRef conflicts_with_parents = make_tx({50 * CENT}, parent_inputs);
8+ const CTransactionRef conflicts_with_parents = make_tx({50 * CENT}, parent_inputs);
9@@ -209,7 +210,7 @@ BOOST_FIXTURE_TEST_CASE(rbf_helper_functions, TestChain100Setup)
10 // Tests for HasNoNewUnconfirmed
11- CTransactionRef spends_unconfirmed = make_tx({36 * CENT}, {tx1});
12+ const CTransactionRef spends_unconfirmed = make_tx({36 * CENT}, {tx1});
13@@ -220,11 +221,11 @@ BOOST_FIXTURE_TEST_CASE(rbf_helper_functions, TestChain100Setup)
14- CTransactionRef spends_new_unconfirmed = make_tx({36 * CENT}, {tx1, tx8});
15+ const CTransactionRef spends_new_unconfirmed = make_tx({36 * CENT}, {tx1, tx8});
16 BOOST_CHECK(HasNoNewUnconfirmed(*spends_new_unconfirmed.get(), pool, {entry2}).has_value());
17 BOOST_CHECK(HasNoNewUnconfirmed(*spends_new_unconfirmed.get(), pool, all_entries).has_value());
18
19- CTransactionRef spends_conflicting_confirmed = make_tx({45 * CENT}, {m_coinbase_txns[0], m_coinbase_txns[1]});
20+ const CTransactionRef spends_conflicting_confirmed = make_tx({45 * CENT}, {m_coinbase_txns[0], m_coinbase_txns[1]});
21 }