mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Saving a payment request can clear another wallet’s reserved receiving address #1085
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#1085
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?
Receive reservations are not isolated for certain valid nested wallet names. Creating a request in
Ledgercan remove the address reserved byLedger/address. After restart, the latter creates its request for a different address.To reproduce:
LedgerandLedger/address. The fixture wallets were created through RPC.Ledger/address, select an unused labelled address in Addresses and choose Create payment request. Record that address and leave the draft open.Ledgerand create a payment request.Ledger/address.0.001 BTC, then pay the address selected in step 2.The saved request uses a different address. Core credits the payment to
Ledger/address, but the request remains Awaiting payment, with zero received, including after confirmation and another restart.The reservation survives restart when step 3 is omitted. It also survives the equivalent sequence with the non-colliding name
Ledger/invoices.Clearing one wallet’s reservation should never remove another wallet’s reservation.
This is in the QML persistence layer: the key includes the raw wallet name, and clearing the reservation removes a hierarchical QSettings key containing the nested wallet’s entry.
Reproduced on merged
qt6at6e54a48ab571, macOS / Qt 6.9, with offscreen regtest fixtures and isolated INI settings. Native preference backends were not tested. The payment remained in the correct wallet. Related to #972.