aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-06-12 17:58:14 +0100
committerGitHub <[email protected]>2021-06-12 17:58:14 +0100
commit52851fa2dd6c59e53cd8d775ac632643185614bc (patch)
tree5b2c31e6f8cb419120ce6aba96240538b8bd34d3 /src
parentMerge pull request #2259 from rnicoll/1.21-node-context (diff)
parentDisable generating BECH32 addresses from the UI (diff)
downloaddiscoin-52851fa2dd6c59e53cd8d775ac632643185614bc.tar.xz
discoin-52851fa2dd6c59e53cd8d775ac632643185614bc.zip
Merge pull request #2274 from rnicoll/1.21-default-address-type
1.21 Set default address type to legacy
Diffstat (limited to 'src')
-rw-r--r--src/qt/receivecoinsdialog.cpp3
-rw-r--r--src/wallet/wallet.h2
2 files changed, 4 insertions, 1 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.
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 69cf6b66a..2bceb8053 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -108,7 +108,7 @@ enum class FeeEstimateMode;
class ReserveDestination;
//! Default for -addresstype
-constexpr OutputType DEFAULT_ADDRESS_TYPE{OutputType::BECH32};
+constexpr OutputType DEFAULT_ADDRESS_TYPE{OutputType::LEGACY};
static constexpr uint64_t KNOWN_WALLET_FLAGS =
WALLET_FLAG_AVOID_REUSE