Merge pull request #1087 from sipa/fix_1086

Fix #1086: add /testnet to passed datadir
This commit is contained in:
Gavin Andresen 2012-04-12 18:22:15 -07:00
commit c3c203ccd9

View file

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