Handle edge cases for sapling activation
This commit is contained in:
11
src/rpc.cpp
11
src/rpc.cpp
@@ -11,7 +11,7 @@ RPC::RPC(QNetworkAccessManager* client, MainWindow* main) {
|
||||
this->main = main;
|
||||
this->ui = main->ui;
|
||||
|
||||
this->turnstile = new Turnstile(this);
|
||||
this->turnstile = new Turnstile(this, main);
|
||||
|
||||
// Setup balances table model
|
||||
balancesTableModel = new BalancesTableModel(main->ui->balancesTable);
|
||||
@@ -510,8 +510,13 @@ void RPC::refreshAddresses() {
|
||||
|
||||
// Function to create the data model and update the views, used below.
|
||||
void RPC::updateUI(bool anyUnconfirmed) {
|
||||
// See if the turnstile migration has any steps that need to be done.
|
||||
turnstile->executeMigrationStep();
|
||||
if (Settings::getInstance()->isTestnet()) {
|
||||
// See if the turnstile migration has any steps that need to be done.
|
||||
turnstile->executeMigrationStep();
|
||||
} else {
|
||||
// Not available on mainnet yet.
|
||||
main->ui->actionTurnstile_Migration->setVisible(false);
|
||||
}
|
||||
|
||||
ui->unconfirmedWarning->setVisible(anyUnconfirmed);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user