mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix #1086: add /testnet to passed datadir
This commit is contained in:
parent
4ac24cf59e
commit
7a743148c9
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user