Discourage creation of new sprout addresses
This commit is contained in:
@@ -841,6 +841,14 @@ void MainWindow::setupTransactionsTab() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::addNewZaddr(bool sapling) {
|
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) {
|
rpc->newZaddr(sapling, [=] (json reply) {
|
||||||
QString addr = QString::fromStdString(reply.get<json::string_t>());
|
QString addr = QString::fromStdString(reply.get<json::string_t>());
|
||||||
// Make sure the RPC class reloads the z-addrs for future use
|
// Make sure the RPC class reloads the z-addrs for future use
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@@ -603,13 +603,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QRadioButton" name="rdioZAddr">
|
|
||||||
<property name="text">
|
|
||||||
<string>z-Addr(Sprout)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="rdioTAddr">
|
<widget class="QRadioButton" name="rdioTAddr">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@@ -623,6 +616,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="rdioZAddr">
|
||||||
|
<property name="text">
|
||||||
|
<string>z-Addr(Sprout)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -977,7 +977,6 @@
|
|||||||
<tabstop>sendTransactionButton</tabstop>
|
<tabstop>sendTransactionButton</tabstop>
|
||||||
<tabstop>cancelSendButton</tabstop>
|
<tabstop>cancelSendButton</tabstop>
|
||||||
<tabstop>balancesTable</tabstop>
|
<tabstop>balancesTable</tabstop>
|
||||||
<tabstop>rdioZAddr</tabstop>
|
|
||||||
<tabstop>rdioTAddr</tabstop>
|
<tabstop>rdioTAddr</tabstop>
|
||||||
<tabstop>listRecieveAddresses</tabstop>
|
<tabstop>listRecieveAddresses</tabstop>
|
||||||
<tabstop>btnRecieveNewAddr</tabstop>
|
<tabstop>btnRecieveNewAddr</tabstop>
|
||||||
|
|||||||
Reference in New Issue
Block a user