Browse Source

Search in a different castle for sapling params when inside a DMG

pull/102/head
Jonathan "Duke" Leto 5 years ago
parent
commit
e5c76f4b0a
  1. 6
      src/connection.cpp

6
src/connection.cpp

@ -590,8 +590,6 @@ bool ConnectionLoader::verifyParams() {
QDir paramsDir(zcashParamsDir());
// TODO: better error reporting if only 1 file exists or is missing
// TODO: do a basic size check, to filter out partial downloads and corrupt
// files from full HD's and other weird stuff
qDebug() << "Verifying sapling param files exist";
@ -612,8 +610,8 @@ bool ConnectionLoader::verifyParams() {
}
// this is to support hushd inside a .dmg file, where the binaries are not at the root directory, but they are executed from the root dir of the .dmg
if( QFile( QDir("..").filePath("Contents/MacOS/sapling-output.params") ).exists() && QFile( QDir("..").filePath("Contents/MacOS/hush3/sapling-spend.params") ).exists() ) {
qDebug() << "Found params in ../Contents/MacOS";
if( QFile( QDir("..").filePath("./silentdragon.app/Contents/MacOS/sapling-output.params") ).exists() && QFile( QDir("..").filePath("./silentdragon.app/Contents/MacOS/hush3/sapling-spend.params") ).exists() ) {
qDebug() << "Found params in ../silentdragon.app/Contents/MacOS";
return true;
}

Loading…
Cancel
Save