|
|
@ -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)) |
|
|
|
|
|
|
|
path /= "testnet"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (fNetSpecific && GetBoolArg("-testnet", false)) |
|
|
|
|
|
|
|
path /= "testnet"; |
|
|
|
|
|
|
|
|
|
|
|
fs::create_directory(path); |
|
|
|
fs::create_directory(path); |
|
|
|
|
|
|
|
|
|
|
|