Discourage creation of new sprout addresses
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
@@ -603,13 +603,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rdioZAddr">
|
||||
<property name="text">
|
||||
<string>z-Addr(Sprout)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rdioTAddr">
|
||||
<property name="sizePolicy">
|
||||
@@ -623,6 +616,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rdioZAddr">
|
||||
<property name="text">
|
||||
<string>z-Addr(Sprout)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
@@ -977,7 +977,6 @@
|
||||
<tabstop>sendTransactionButton</tabstop>
|
||||
<tabstop>cancelSendButton</tabstop>
|
||||
<tabstop>balancesTable</tabstop>
|
||||
<tabstop>rdioZAddr</tabstop>
|
||||
<tabstop>rdioTAddr</tabstop>
|
||||
<tabstop>listRecieveAddresses</tabstop>
|
||||
<tabstop>btnRecieveNewAddr</tabstop>
|
||||
|
||||
Reference in New Issue
Block a user