Create walletdir if datadir doesn't exist and fix tests

This commit is contained in:
MeshCollider
2017-10-12 22:04:46 +13:00
parent 9587a9c12b
commit 8263f6a5ac
11 changed files with 45 additions and 34 deletions
+6
View File
@@ -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.