Support 2.0.5 sapling turnstile

This commit is contained in:
Aditya Kulkarni
2019-05-22 13:17:57 -07:00
parent 43f802d7ac
commit fcb68823a7
7 changed files with 331 additions and 6 deletions

View File

@@ -381,11 +381,17 @@ void MainWindow::turnstileDoMigration(QString fromAddr) {
void MainWindow::setupTurnstileDialog() {
// Turnstile migration
QObject::connect(ui->actionTurnstile_Migration, &QAction::triggered, [=] () {
// If there is current migration that is present, show the progress button
if (rpc->getTurnstile()->isMigrationPresent())
turnstileProgress();
else
turnstileDoMigration();
// If the underlying zcashd has support for the migration, use that.
// Else, show the ZecWallet turnstile tool
if (rpc->getMigrationStatus()->available) {
Turnstile::showZcashdMigration(this);
} else {
// If there is current migration that is present, show the progress button
if (rpc->getTurnstile()->isMigrationPresent())
turnstileProgress();
else
turnstileDoMigration();
}
});
}