Browse Source

Enable indexes by default, and re-enable groth16, which must be initialized together with sapling param files

pull/45/head
Jonathan "Duke" Leto 5 years ago
parent
commit
021e4bf2aa
  1. 15
      src/connection.cpp

15
src/connection.cpp

@ -183,11 +183,15 @@ void ConnectionLoader::createZcashConf() {
QTextStream out(&file);
out << "# Autogenerated by Silent Dragon\n";
out << "server=1\n";
out << "rpcuser=hush\n";
out << "rpcpassword=" % randomPassword() << "\n";
out << "rpcport=18031\n";
out << "txindex=1\n";
out << "addressindex=1\n";
out << "spentindex=1\n";
out << "timestampindex=1\n";
out << "rpcworkqueue=256\n";
out << "rpcallowip=127.0.0.1\n";
@ -210,11 +214,9 @@ void ConnectionLoader::downloadParams(std::function<void(void)> cb) {
// Add all the files to the download queue
downloadQueue = new QQueue<QUrl>();
client = new QNetworkAccessManager(main);
downloadQueue->enqueue(QUrl("https://z.cash/downloads/sapling-output.params"));
downloadQueue->enqueue(QUrl("https://z.cash/downloads/sapling-spend.params"));
downloadQueue->enqueue(QUrl("https://z.cash/downloads/sprout-proving.key"));
downloadQueue->enqueue(QUrl("https://z.cash/downloads/sprout-verifying.key"));
downloadQueue->enqueue(QUrl("https://z.cash/downloads/sapling-spend.params"));
downloadQueue->enqueue(QUrl("https://z.cash/downloads/sprout-groth16.params"));
doNextDownload(cb);
@ -569,11 +571,10 @@ bool ConnectionLoader::verifyParams() {
if (!QFile(paramsDir.filePath("sapling-output.params")).exists()) return false;
if (!QFile(paramsDir.filePath("sapling-spend.params")).exists()) return false;
//TODO: sprout probably not needed
if (!QFile(paramsDir.filePath("sprout-proving.key")).exists()) return false;
if (!QFile(paramsDir.filePath("sprout-verifying.key")).exists()) return false;
if (!QFile(paramsDir.filePath("sprout-groth16.params")).exists()) return false;
qDebug() << "All param files found!";
return true;
}

Loading…
Cancel
Save