Skip to content

Commit b34f018

Browse files
committed
Revert "gui: Generate bech32 addresses by default (take 2, fixup)"
This reverts commit fa5a4cd.
1 parent f50785a commit b34f018

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/interfaces/node.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ class NodeImpl : public Node
201201
return GuessVerificationProgress(Params().TxData(), tip);
202202
}
203203
bool isInitialBlockDownload() override { return ::ChainstateActive().IsInitialBlockDownload(); }
204-
bool isAddressTypeSet() override { return !::gArgs.GetArg("-addresstype", "").empty(); }
205204
bool getReindex() override { return ::fReindex; }
206205
bool getImporting() override { return ::fImporting; }
207206
void setNetworkActive(bool active) override

src/interfaces/node.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,6 @@ class Node
155155
//! Is initial block download.
156156
virtual bool isInitialBlockDownload() = 0;
157157

158-
//! Is -addresstype set.
159-
virtual bool isAddressTypeSet() = 0;
160-
161158
//! Get reindex.
162159
virtual bool getReindex() = 0;
163160

src/qt/receivecoinsdialog.cpp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <qt/receivecoinsdialog.h>
88
#include <qt/forms/ui_receivecoinsdialog.h>
99

10-
#include <interfaces/node.h>
1110
#include <qt/addresstablemodel.h>
1211
#include <qt/optionsmodel.h>
1312
#include <qt/platformstyle.h>
@@ -93,16 +92,10 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model)
9392
// Last 2 columns are set by the columnResizingFixer, when the table geometry is ready.
9493
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this);
9594

96-
if (model->node().isAddressTypeSet()) {
97-
// user explicitly set the type, use it
98-
if (model->wallet().getDefaultAddressType() == OutputType::BECH32) {
99-
ui->useBech32->setCheckState(Qt::Checked);
100-
} else {
101-
ui->useBech32->setCheckState(Qt::Unchecked);
102-
}
103-
} else {
104-
// Always fall back to bech32 in the gui
95+
if (model->wallet().getDefaultAddressType() == OutputType::BECH32) {
10596
ui->useBech32->setCheckState(Qt::Checked);
97+
} else {
98+
ui->useBech32->setCheckState(Qt::Unchecked);
10699
}
107100

108101
// Set the button to be enabled or disabled based on whether the wallet can give out new addresses.

0 commit comments

Comments
 (0)