aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-12-08 16:19:31 -0500
committerCarl Dong <contact@carldong.me>2022-06-28 16:08:34 -0400
commitd1684beabe5b738c2cc83de83e1aaef11a761b69 (patch)
tree78a19775e3c20969688f8cfee621efdb4049f736 /src/init.cpp
parent9a3d825c30e8e6118d74a4e568744cb9d03f7f5d (diff)
downloadbitcoin-d1684beabe5b738c2cc83de83e1aaef11a761b69.tar.xz
fees: Pass in a filepath instead of referencing gArgs
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index ea8d01a7fa..ee90abcc93 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -40,10 +40,11 @@
#include <node/caches.h>
#include <node/chainstate.h>
#include <node/context.h>
-#include <node/miner.h>
#include <node/interface_ui.h>
+#include <node/miner.h>
#include <policy/feerate.h>
#include <policy/fees.h>
+#include <policy/fees_args.h>
#include <policy/policy.h>
#include <policy/settings.h>
#include <protocol.h>
@@ -1291,7 +1292,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
assert(!node.fee_estimator);
// Don't initialize fee estimation with old data if we don't relay transactions,
// as they would never get updated.
- if (!ignores_incoming_txs) node.fee_estimator = std::make_unique<CBlockPolicyEstimator>();
+ if (!ignores_incoming_txs) node.fee_estimator = std::make_unique<CBlockPolicyEstimator>(FeeestPath(args));
// sanitize comments per BIP-0014, format user agent and check total size
std::vector<std::string> uacomments;