mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
Receive does not start from the node's -addresstype #1137
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1137
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With
addresstype=legacy,bech32orp2sh-segwitinbitcoin.conf, a wallet's first Receive address is still Taproot, andsettings.jsonrecordsbech32mas that wallet's preferred type on the first visit to Receive, before anything is chosen.getnewaddresswith no type on the same wallet follows the option, and Bitcoin-Qt, by its source, preselects the option's type in its Receive tab.To reproduce:
addresstype=legacyinbitcoin.confand start the app.The address is
bcrt1p…and Address settings shows Bech32m (Taproot) selected.settings.jsonnow has"qml_receive_address_types": {"<wallet>": "bech32m"}.getnewaddresson the same wallet returns a legacy address.It was the same for
bech32andp2sh-segwit, and for a wallet created over RPC: across one launch per value and one with no option, all 8 first addresses were Taproot whilegetnewaddressreturned the configured type (bech32 with no option). Choosing a type once under Address settings works and is kept across a restart.#932 made Taproot the default on purpose ("Persist each wallet's preferred address type in settings.json, defaulting to Taproot"). It does not say what should happen when the user has set
-addresstype. Before #932 the app used the wallet's default type, which carries the option (#652). The default is chosen here:github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/models/walletqmlmodel.cpp (L1122-L1142)Should an explicit
-addresstypebe the starting type when no per-wallet preference has been saved? Related: #1088.Reproduced on
qt6at2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen only;legacyalso ateed1f426fcb6. Clicks went through the test bridge. Bitcoin-Qt was read, not run. Not run: the option on the command line,-changetype, and a wallet without a Taproot descriptor.