Skip to content

Commit

Permalink
Merge pull request #26 from DeFiCh/fix/macos_build_fail
Browse files Browse the repository at this point in the history
Fix build fail on MacOS
  • Loading branch information
monstrobishi authored Sep 14, 2020
2 parents c783a99 + cd587c2 commit 22e95f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/walletutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::vector<fs::path> 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.
Expand Down

0 comments on commit 22e95f0

Please sign in to comment.