diff options
author | Carl Dong <contact@carldong.me> | 2021-12-08 16:19:31 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-06-28 16:08:34 -0400 |
commit | d1684beabe5b738c2cc83de83e1aaef11a761b69 (patch) | |
tree | 78a19775e3c20969688f8cfee621efdb4049f736 /src/test/util/setup_common.cpp | |
parent | 9a3d825c30e8e6118d74a4e568744cb9d03f7f5d (diff) |
fees: Pass in a filepath instead of referencing gArgs
Diffstat (limited to 'src/test/util/setup_common.cpp')
-rw-r--r-- | src/test/util/setup_common.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 60ddda1c0a..0c9e880d67 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -23,6 +23,7 @@ #include <node/miner.h> #include <noui.h> #include <policy/fees.h> +#include <policy/fees_args.h> #include <pow.h> #include <rpc/blockchain.h> #include <rpc/register.h> @@ -177,7 +178,7 @@ ChainTestingSetup::ChainTestingSetup(const std::string& chainName, const std::ve m_node.scheduler->m_service_thread = std::thread(util::TraceThread, "scheduler", [&] { m_node.scheduler->serviceQueue(); }); GetMainSignals().RegisterBackgroundSignalScheduler(*m_node.scheduler); - m_node.fee_estimator = std::make_unique<CBlockPolicyEstimator>(); + m_node.fee_estimator = std::make_unique<CBlockPolicyEstimator>(FeeestPath(*m_node.args)); m_node.mempool = std::make_unique<CTxMemPool>(MemPoolOptionsForTest(m_node)); m_cache_sizes = CalculateCacheSizes(m_args); |