mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Send review labels an uppercase wallet-owned recipient as change #1098
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#1098
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?
Sending to one of the wallet's own Bech32 addresses in uppercase makes the transaction-flow diagram label the explicitly requested payment output Change. The same address in lowercase is classified correctly. Both spellings are valid and identify the same destination.
To reproduce:
getnewaddress "" "bech32".Both outputs are now labeled Change, including the 100,000 sats explicitly entered as the payment.
Changing the address back to lowercase restores the correct classification. An uppercase address belonging to another wallet remains a Recipient. The recipient list, destination script and payment amount remain correct throughout; the error is in the review diagram's explanation of the owned output.
The mismatch comes from QML's recipient matching.
captureReviewedRecipients()matches the output by script but stores the originally entered address spelling.currentTransactionFlow()reconstructs a canonical lowercase address, andisReviewedRecipient()compares the strings directly. That fails to recognize the uppercase owned recipient and classifies it as change.Equivalent Bech32 spellings should produce the same recipient/change classification. Match the decoded destination or captured output identity while preserving Base58 address case sensitivity.
Reproduced on merged
qt6ateed1f426fcb64daa61b004590335a03afe376274, macOS / Qt 6.9, using the full app's offscreen platform and isolated regtest wallets. No transaction was broadcast.