aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.cpp
diff options
context:
space:
mode:
authorMeshCollider <[email protected]>2017-10-27 15:15:40 +1300
committerMeshCollider <[email protected]>2017-11-18 00:50:59 +1300
commit9587a9c12b5d54263787a23c75f570db368318c1 (patch)
tree8fe3ceaca77bd217c1b7b5adb982502467f5e5c8 /src/wallet/walletutil.cpp
parentAdd release notes for -walletdir and wallets/ dir (diff)
downloaddiscoin-9587a9c12b5d54263787a23c75f570db368318c1.tar.xz
discoin-9587a9c12b5d54263787a23c75f570db368318c1.zip
Default walletdir is wallets/ if it exists
Diffstat (limited to 'src/wallet/walletutil.cpp')
-rw-r--r--src/wallet/walletutil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp
index 85ac428b2..fbb5215a5 100644
--- a/src/wallet/walletutil.cpp
+++ b/src/wallet/walletutil.cpp
@@ -17,6 +17,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;