diff options
author | Carl Dong <contact@carldong.me> | 2022-03-21 21:56:03 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-06-15 17:28:55 -0400 |
commit | 213457e170ce41a0b26c644aa010111df36414a6 (patch) | |
tree | ea5fd49109b551c9f8054cb25d0704cc99fdf2dd | |
parent | 319f0ceeeb25f28e027fc41be2755092dc5365b4 (diff) | |
download | bitcoin-213457e170ce41a0b26c644aa010111df36414a6.tar.xz |
test/policyestimator: Use ChainTestingSetup's CTxMemPool
-rw-r--r-- | src/test/policyestimator_tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/policyestimator_tests.cpp b/src/test/policyestimator_tests.cpp index 06877898a4..3f66a8fc46 100644 --- a/src/test/policyestimator_tests.cpp +++ b/src/test/policyestimator_tests.cpp @@ -12,12 +12,12 @@ #include <boost/test/unit_test.hpp> -BOOST_FIXTURE_TEST_SUITE(policyestimator_tests, BasicTestingSetup) +BOOST_FIXTURE_TEST_SUITE(policyestimator_tests, ChainTestingSetup) BOOST_AUTO_TEST_CASE(BlockPolicyEstimates) { - CBlockPolicyEstimator feeEst; - CTxMemPool mpool(&feeEst); + CBlockPolicyEstimator& feeEst = *Assert(m_node.fee_estimator); + CTxMemPool& mpool = *Assert(m_node.mempool); LOCK2(cs_main, mpool.cs); TestMemPoolEntryHelper entry; CAmount basefee(2000); |