Wait for sapling activation for new addresses
This commit is contained in:
@@ -1291,6 +1291,12 @@ void MainWindow::setupRecieveTab() {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (ui->rdioZSAddr->isChecked()) {
|
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);
|
addNewZaddr(true);
|
||||||
} else if (ui->rdioTAddr->isChecked()) {
|
} else if (ui->rdioTAddr->isChecked()) {
|
||||||
addNewTAddr();
|
addNewTAddr();
|
||||||
|
|||||||
Reference in New Issue
Block a user