aboutsummaryrefslogtreecommitdiff
path: root/src/qt/receivecoinsdialog.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-06-12 17:13:20 +0100
committerRoss Nicoll <[email protected]>2021-06-12 17:13:41 +0100
commit9f3d27833c9221e851edec06aff4bc5240c75739 (patch)
tree5b2c31e6f8cb419120ce6aba96240538b8bd34d3 /src/qt/receivecoinsdialog.cpp
parentGenerate legacy addresses by default (diff)
downloaddiscoin-9f3d27833c9221e851edec06aff4bc5240c75739.tar.xz
discoin-9f3d27833c9221e851edec06aff4bc5240c75739.zip
Disable generating BECH32 addresses from the UI
Diffstat (limited to 'src/qt/receivecoinsdialog.cpp')
-rw-r--r--src/qt/receivecoinsdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp
index d374d610e..cc1de7be1 100644
--- a/src/qt/receivecoinsdialog.cpp
+++ b/src/qt/receivecoinsdialog.cpp
@@ -96,6 +96,9 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model)
ui->useBech32->setCheckState(Qt::Checked);
} else {
ui->useBech32->setCheckState(Qt::Unchecked);
+ // Dogecoin: Don't allow the user to generate BECH32 addresses as we don't support them except for test networks.
+ // If you need to test, override the default on the command line.
+ ui->useBech32->setEnabled(false);
}
// Set the button to be enabled or disabled based on whether the wallet can give out new addresses.