Skip to content

Commit 414d846

Browse files
author
MarcoFalke
committed
Merge #15711: gui: Generate bech32 addresses by default
faf62d9 gui: Generate bech32 addresses by default (MarcoFalke) Pull request description: Most services support bech32 addresses now, so generating legacy addresses by default seems overly cautious. bech32 addresses are more robust and user friendly in multiple ways. ACKs for commit faf62d: promag: utACK faf62d9, maybe add a release note "checkbox changed, but the behavior/outcome remains the same". laanwj: utACK faf62d9, don't think a release note is needed for this specifically, though a general release note on switching to bech32 by default would make sense fanquake: tACK faf62d9 Empact: utACK bitcoin/bitcoin@faf62d9 Tree-SHA512: a03e6ccf1e5476fe800941992c531664830cec0644984d8bce97c8d8f5d6d9abd528ab979892368cd195e7c8b9083d6b8dfd36a7cb172aa9dbeaa01a948e30e1
2 parents b4e74f9 + faf62d9 commit 414d846

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/qt/forms/receivecoinsdialog.ui

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
</widget>
190190
</item>
191191
<item>
192-
<widget class="QCheckBox" name="useBech32">
192+
<widget class="QCheckBox" name="useLegacyAddress">
193193
<property name="sizePolicy">
194194
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
195195
<horstretch>0</horstretch>
@@ -206,10 +206,10 @@
206206
<enum>Qt::StrongFocus</enum>
207207
</property>
208208
<property name="toolTip">
209-
<string>Native segwit addresses (aka Bech32 or BIP-173) reduce your transaction fees later on and offer better protection against typos, but old wallets don't support them. When unchecked, an address compatible with older wallets will be created instead.</string>
209+
<string>Native segwit addresses (aka Bech32 or BIP-173) reduce your transaction fees later on and offer better protection against typos, but old wallets don't support them. When checked, an address compatible with older wallets will be created instead.</string>
210210
</property>
211211
<property name="text">
212-
<string>Generate native segwit (Bech32) address</string>
212+
<string>Generate legacy address</string>
213213
</property>
214214
</widget>
215215
</item>
@@ -360,7 +360,7 @@
360360
<tabstops>
361361
<tabstop>reqLabel</tabstop>
362362
<tabstop>reqAmount</tabstop>
363-
<tabstop>useBech32</tabstop>
363+
<tabstop>useLegacyAddress</tabstop>
364364
<tabstop>reqMessage</tabstop>
365365
<tabstop>receiveButton</tabstop>
366366
<tabstop>clearButton</tabstop>

src/qt/receivecoinsdialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model)
9595
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH, this);
9696

9797
if (model->wallet().getDefaultAddressType() == OutputType::BECH32) {
98-
ui->useBech32->setCheckState(Qt::Checked);
98+
ui->useLegacyAddress->setCheckState(Qt::Unchecked);
9999
} else {
100-
ui->useBech32->setCheckState(Qt::Unchecked);
100+
ui->useLegacyAddress->setCheckState(Qt::Checked);
101101
}
102102

103103
// Set the button to be enabled or disabled based on whether the wallet can give out new addresses.
@@ -150,7 +150,7 @@ void ReceiveCoinsDialog::on_receiveButton_clicked()
150150
QString label = ui->reqLabel->text();
151151
/* Generate new receiving address */
152152
OutputType address_type;
153-
if (ui->useBech32->isChecked()) {
153+
if (!ui->useLegacyAddress->isChecked()) {
154154
address_type = OutputType::BECH32;
155155
} else {
156156
address_type = model->wallet().getDefaultAddressType();

0 commit comments

Comments
 (0)