mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-21 17:31:05 +02:00
test/policyestimator: Use ChainTestingSetup's CTxMemPool
This commit is contained in:
parent
319f0ceeeb
commit
213457e170
@ -12,12 +12,12 @@
|
|||||||
|
|
||||||
#include <boost/test/unit_test.hpp>
|
#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)
|
BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
|
||||||
{
|
{
|
||||||
CBlockPolicyEstimator feeEst;
|
CBlockPolicyEstimator& feeEst = *Assert(m_node.fee_estimator);
|
||||||
CTxMemPool mpool(&feeEst);
|
CTxMemPool& mpool = *Assert(m_node.mempool);
|
||||||
LOCK2(cs_main, mpool.cs);
|
LOCK2(cs_main, mpool.cs);
|
||||||
TestMemPoolEntryHelper entry;
|
TestMemPoolEntryHelper entry;
|
||||||
CAmount basefee(2000);
|
CAmount basefee(2000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user