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

View File

@@ -574,7 +574,10 @@ const fs::path &GetDataDir(bool fNetSpecific)
if (fNetSpecific)
path /= BaseParams().DataDir();
fs::create_directories(path);
if (fs::create_directories(path)) {
// This is the first run, create wallets subdirectory too
fs::create_directories(path / "wallets");
}
return path;
}