From cd587c2282b703cc5e1d234ac40ce27a4b9909c1 Mon Sep 17 00:00:00 2001 From: ShengguangXiao Date: Thu, 10 Sep 2020 20:07:32 +0800 Subject: [PATCH] Fix build fail on MacOS --- src/wallet/walletutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp index f480139304..8a633c0c20 100644 --- a/src/wallet/walletutil.cpp +++ b/src/wallet/walletutil.cpp @@ -74,7 +74,7 @@ std::vector ListWalletDir() if (it->status().type() == fs::directory_file && IsBerkeleyBtree(it->path() / "wallet.dat")) { // Found a directory which contains wallet.dat btree file, add it as a wallet. paths.emplace_back(path); - } else if (it.level() == 0 && it->symlink_status().type() == fs::regular_file && IsBerkeleyBtree(it->path())) { + } else if (it.depth() == 0 && it->symlink_status().type() == fs::regular_file && IsBerkeleyBtree(it->path())) { if (it->path().filename() == "wallet.dat") { // Found top-level wallet.dat btree file, add top level directory "" // as a wallet.