From 82675c7e47b4bb40c85149afebc0cea01564a8c5 Mon Sep 17 00:00:00 2001 From: adityapk Date: Thu, 8 Nov 2018 15:11:30 -0800 Subject: [PATCH] Drop good/excellent wording in turnstile migration --- src/mainwindow.cpp | 19 +++++++++---------- src/turnstile.ui | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b8f7cce..52f51dc 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -244,22 +244,21 @@ void MainWindow::turnstileDoMigration(QString fromAddr) { // Privacy level combobox // Num tx over num blocks - QList> privOptions; - privOptions.push_back(std::make_tuple("Good", 3, 576)); - privOptions.push_back(std::make_tuple("Excellent", 5, 1152)); - privOptions.push_back(std::make_tuple("Paranoid", 10, 2304)); + QList> privOptions; + privOptions.push_back(std::make_tuple(3, 576)); + privOptions.push_back(std::make_tuple(5, 1152)); + privOptions.push_back(std::make_tuple(10, 2304)); QObject::connect(turnstile.privLevel, QOverload::of(&QComboBox::currentIndexChanged), [=] (auto idx) { // Update the fees turnstile.minerFee->setText( - Settings::getInstance()->getZECUSDDisplayFormat(std::get<1>(privOptions[idx]) * Utils::getMinerFee())); + Settings::getInstance()->getZECUSDDisplayFormat(std::get<0>(privOptions[idx]) * Utils::getMinerFee())); }); for (auto i : privOptions) { - turnstile.privLevel->addItem(std::get<0>(i) % " - " - % QString::number(std::get<1>(i)) % " tx over " - % QString::number(std::get<2>(i)) % " blocks (" - % QString::number((int)(std::get<2>(i) / 24 / 24)) % " days)" // 24 blks/hr * 24 hrs per day + turnstile.privLevel->addItem(QString::number(std::get<0>(i)) % " tx over " % + QString::number(std::get<1>(i)) % " blocks (" % + QString::number((int)(std::get<1>(i) / 24 / 24)) % " days)" // 24 blks/hr * 24 hrs per day ); } @@ -270,7 +269,7 @@ void MainWindow::turnstileDoMigration(QString fromAddr) { rpc->getTurnstile()->planMigration( turnstile.migrateZaddList->currentText(), turnstile.migrateTo->currentText(), - std::get<1>(privLevel), std::get<2>(privLevel)); + std::get<0>(privLevel), std::get<1>(privLevel)); QMessageBox::information(this, "Backup your wallet.dat", "The migration will now start. You can check progress in the File -> Sapling Turnstile menu.\n\nYOU MUST BACKUP YOUR wallet.dat NOW!\n\nNew Addresses have been added to your wallet which will be used for the migration.", diff --git a/src/turnstile.ui b/src/turnstile.ui index acf6e64..1c91eac 100644 --- a/src/turnstile.ui +++ b/src/turnstile.ui @@ -41,7 +41,7 @@ - Privacy Level + Number of Transactions