diff options
| author | MeshCollider <[email protected]> | 2017-10-12 22:04:46 +1300 |
|---|---|---|
| committer | MeshCollider <[email protected]> | 2017-11-18 00:50:59 +1300 |
| commit | 8263f6a5ac3f3af102a2819b7e179b00db7e0437 (patch) | |
| tree | 2d08c4f8eeed52a2c1101d0fe1c16556d6da2b73 /src/wallet/init.cpp | |
| parent | Default walletdir is wallets/ if it exists (diff) | |
| download | discoin-8263f6a5ac3f3af102a2819b7e179b00db7e0437.tar.xz discoin-8263f6a5ac3f3af102a2819b7e179b00db7e0437.zip | |
Create walletdir if datadir doesn't exist and fix tests
Diffstat (limited to 'src/wallet/init.cpp')
| -rw-r--r-- | src/wallet/init.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp index 754ed8a67..67c46df87 100644 --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -193,6 +193,12 @@ bool VerifyWallets() return true; } + if (gArgs.IsArgSet("-walletdir") && !fs::is_directory(GetWalletDir())) { + return InitError(strprintf(_("Error: Specified wallet directory \"%s\" does not exist."), gArgs.GetArg("-walletdir", "").c_str())); + } + + LogPrintf("Using wallet directory %s\n", GetWalletDir().string()); + uiInterface.InitMessage(_("Verifying wallet(s)...")); // Keep track of each wallet absolute path to detect duplicates. |