From 7be588fe48c3002b7404ce02fffe63b8692117cc Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Fri, 29 Mar 2019 11:55:53 -0700 Subject: [PATCH] Wait for sapling activation for new addresses --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ed4560c..addfcc5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1291,6 +1291,12 @@ void MainWindow::setupRecieveTab() { return; if (ui->rdioZSAddr->isChecked()) { + if (!Settings::getInstance()->isSaplingActive()) { + QMessageBox::critical(this, tr("Sapling not active"), + tr("Your node is still syncing, and has not synced past the sapling activation block yet. Can't create a new Sapling address until sapling is active.\n\nPlease wait for your node to sync."), + QMessageBox::Ok); + return; + } addNewZaddr(true); } else if (ui->rdioTAddr->isChecked()) { addNewTAddr();