mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge pull request #1087 from sipa/fix_1086
Fix #1086: add /testnet to passed datadir
This commit is contained in:
commit
c3c203ccd9
@ -836,9 +836,9 @@ const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
||||
path = mapArgs["-datadir"];
|
||||
} else {
|
||||
path = GetDefaultDataDir();
|
||||
}
|
||||
if (fNetSpecific && GetBoolArg("-testnet", false))
|
||||
path /= "testnet";
|
||||
}
|
||||
|
||||
fs::create_directory(path);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user