diff options
author | Kiminuo <kiminuo@protonmail.com> | 2021-01-13 15:44:40 +0100 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-01-15 22:48:15 +0100 |
commit | da9caa1cedd69702aea44cb44b2fd0a2d6d56916 (patch) | |
tree | fc2198dea8c7c5f0cd91b7df259afd1a4c90efd7 /src/wallet/load.cpp | |
parent | 66576c4fd532ac18b8b355ea93d25581a2c15654 (diff) |
Replace fs::absolute calls with AbsPathJoin calls
This adds better test coverage and will make it easier in #20744 to remove our dependency on the two-argument boost::filesystem::absolute() function which does not have a direct equivalent in C++17.
Diffstat (limited to 'src/wallet/load.cpp')
-rw-r--r-- | src/wallet/load.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp index 036fd4956f..30832f983b 100644 --- a/src/wallet/load.cpp +++ b/src/wallet/load.cpp @@ -62,7 +62,7 @@ bool VerifyWallets(interfaces::Chain& chain) std::set<fs::path> wallet_paths; for (const auto& wallet_file : gArgs.GetArgs("-wallet")) { - const fs::path path = fs::absolute(wallet_file, GetWalletDir()); + const fs::path path = fsbridge::AbsPathJoin(GetWalletDir(), wallet_file); if (!wallet_paths.insert(path).second) { chain.initWarning(strprintf(_("Ignoring duplicate -wallet %s."), wallet_file)); |