mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
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.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user