Discourage creation of new sprout addresses

This commit is contained in:
Aditya Kulkarni
2018-11-17 10:09:42 -08:00
parent f37410f98e
commit b1b06989b7
2 changed files with 16 additions and 9 deletions

View File

@@ -841,6 +841,14 @@ void MainWindow::setupTransactionsTab() {
}
void MainWindow::addNewZaddr(bool sapling) {
if (!sapling) {
auto confirm = QMessageBox::question(this, "Sprout Address",
"Sprout addresses are inefficient, and will be deprecated in the future in favour of Sapling addresses.\n\n"
"Are you sure you want to create a new Sprout address?", QMessageBox::Yes, QMessageBox::No);
if (confirm != QMessageBox::Yes)
return;
}
rpc->newZaddr(sapling, [=] (json reply) {
QString addr = QString::fromStdString(reply.get<json::string_t>());
// Make sure the RPC class reloads the z-addrs for future use