Send review labels an uppercase wallet-owned recipient as change #1098

Open
opened 2026-11-10 13:06:02 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-10 13:06:02 +00:00 (Migrated from github.com)

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:

  1. Use a funded regtest wallet and generate a fresh Bech32 receiving address owned by that wallet, for example with getnewaddress "" "bech32".
  2. In Send, enter that address in lowercase and an amount of 100,000 sats, leaving enough funds for a separate change output.
  3. Open Review Transaction and inspect the transaction-flow diagram. The payment output is identified as wallet-owned; only the actual change output is labeled Change.
  4. Close review, change only the recipient address to its uppercase spelling, and open review again.

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, and isReviewedRecipient() 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 qt6 at eed1f426fcb64daa61b004590335a03afe376274, macOS / Qt 6.9, using the full app's offscreen platform and isolated regtest wallets. No transaction was broadcast.

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: 1. Use a funded regtest wallet and generate a fresh Bech32 receiving address owned by that wallet, for example with `getnewaddress "" "bech32"`. 2. In Send, enter that address in lowercase and an amount of **100,000 sats**, leaving enough funds for a separate change output. 3. Open Review Transaction and inspect the transaction-flow diagram. The payment output is identified as wallet-owned; only the actual change output is labeled **Change**. 4. Close review, change only the recipient address to its uppercase spelling, and open review again. 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, and `isReviewedRecipient()` 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 `qt6` at `eed1f426fcb64daa61b004590335a03afe376274`, macOS / Qt 6.9, using the full app's offscreen platform and isolated regtest wallets. No transaction was broadcast.
Sign in to join this conversation.
No description provided.