aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-03-21 21:56:03 -0400
committerCarl Dong <contact@carldong.me>2022-06-15 17:28:55 -0400
commit213457e170ce41a0b26c644aa010111df36414a6 (patch)
treeea5fd49109b551c9f8054cb25d0704cc99fdf2dd /src
parent319f0ceeeb25f28e027fc41be2755092dc5365b4 (diff)
downloadbitcoin-213457e170ce41a0b26c644aa010111df36414a6.tar.xz
test/policyestimator: Use ChainTestingSetup's CTxMemPool
Diffstat (limited to 'src')
-rw-r--r--src/test/policyestimator_tests.cpp6
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);