X Tutup
Skip to content

Commit 021c3d8

Browse files
achow101fanquake
authored andcommitted
fs: Make compatible with boost 1.78
Github-Pull: bitcoin#24104 Rebased-From: dc5d6b0
1 parent 9b5f674 commit 021c3d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wallet/load.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bool VerifyWallets(interfaces::Chain& chain)
2222
fs::path wallet_dir = gArgs.GetArg("-walletdir", "");
2323
boost::system::error_code error;
2424
// The canonical path cleans the path, preventing >1 Berkeley environment instances for the same directory
25-
fs::path canonical_wallet_dir = fs::canonical(wallet_dir, error);
25+
fs::path canonical_wallet_dir = fs::canonical(wallet_dir, error).remove_trailing_separator();
2626
if (error || !fs::exists(wallet_dir)) {
2727
chain.initError(strprintf(_("Specified -walletdir \"%s\" does not exist"), wallet_dir.string()));
2828
return false;

test/functional/wallet_multiwallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def wallet_file(name):
141141

142142
# should raise rpc error if wallet path can't be created
143143
err_code = -4 if self.options.descriptors else -1
144-
assert_raises_rpc_error(err_code, "boost::filesystem::create_directory:", self.nodes[0].createwallet, "w8/bad")
144+
assert_raises_rpc_error(err_code, "boost::filesystem::create_director", self.nodes[0].createwallet, "w8/bad")
145145

146146
# check that all requested wallets were created
147147
self.stop_node(0)

0 commit comments

Comments
 (0)
X Tutup