Fix #1086: add /testnet to passed datadir

This commit is contained in:
Pieter Wuille 2012-04-13 03:11:14 +02:00
parent 4ac24cf59e
commit 7a743148c9
1 changed files with 2 additions and 2 deletions

View File

@ -836,9 +836,9 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
path = mapArgs["-datadir"];
} else {
path = GetDefaultDataDir();
if (fNetSpecific && GetBoolArg("-testnet", false))
path /= "testnet";
}
if (fNetSpecific && GetBoolArg("-testnet", false))
path /= "testnet";
fs::create_directory(path);