Wait for sapling activation for new addresses

This commit is contained in:
Aditya Kulkarni
2019-03-29 11:55:53 -07:00
parent 66e811699e
commit 7be588fe48

View File

@@ -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();