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/policy/fees_args.cpp | |
parent | 9a3d825c30e8e6118d74a4e568744cb9d03f7f5d (diff) | |
download | bitcoin-d1684beabe5b738c2cc83de83e1aaef11a761b69.tar.xz |
fees: Pass in a filepath instead of referencing gArgs
Diffstat (limited to 'src/policy/fees_args.cpp')
-rw-r--r-- | src/policy/fees_args.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/policy/fees_args.cpp b/src/policy/fees_args.cpp new file mode 100644 index 0000000000..a3531153b5 --- /dev/null +++ b/src/policy/fees_args.cpp @@ -0,0 +1,12 @@ +#include <policy/fees_args.h> + +#include <util/system.h> + +namespace { +const char* FEE_ESTIMATES_FILENAME = "fee_estimates.dat"; +} // namespace + +fs::path FeeestPath(const ArgsManager& argsman) +{ + return argsman.GetDataDirNet() / FEE_ESTIMATES_FILENAME; +} |