Add support for -zcashparamsdir parameter

This commit is contained in:
miketout
2018-10-23 16:39:31 -07:00
parent d82a969a58
commit 8a1e0d0d5f
2 changed files with 8 additions and 0 deletions

View File

@@ -556,6 +556,12 @@ static boost::filesystem::path ZC_GetBaseParamsDir()
// Unix: ~/.zcash-params
#ifdef _WIN32
// Windows
if (mapArgs.count("-zcashparamsdir")) {
path = fs::system_complete(mapArgs["-zcashparamsdir"]);
if (fs::is_directory(path)) {
return path;
}
}
return GetSpecialFolderPath(CSIDL_APPDATA) / "ZcashParams";
#else
fs::path pathRet;