Skip to content

Commit

Permalink
Default walletdir is wallets/ if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
meshcollider authored and furszy committed Jul 21, 2021
1 parent 359b01d commit 03db5c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/walletutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ fs::path GetWalletDir()
}
} else {
path = GetDataDir();
// If a wallets directory exists, use that, otherwise default to GetDataDir
if (fs::is_directory(path / "wallets")) {
path /= "wallets";
}
}

return path;
Expand Down

0 comments on commit 03db5c8

Please sign in to comment.