bitkit
bitkit copied to clipboard
[Bug]: Manual coin selection shows recently used inputs as still available
Describe the bug
After broadcasting an onchain transaction, the coin selection shows the same inputs as available when going to send another transaction. This does eventually correct itself it left for a short while.
The Coin Selection screen should only show inputs that are relevant. We could make the user wait (with a spinner) whilst this is being determined.
Reproduce
- With Manual coin selection enabled
- Copy own receive address
- Send funds to self whilst observing available inputs
- Repeat steps 1 and 2. The same inputs are shows alongside the newly available input.
Screenshots / Recording
https://github.com/user-attachments/assets/a337cd0d-206c-4876-8b58-4fda7a63ffc5
Timestamps for first video:
- 0:01 - Paste own onchain address to send maximum amount to self
- 0:05 - Observe two inputs are available with values 68_021 and 39_127
- 0:07 to 0:18 - (ignore change of fee)
- 0:19 - Swipe to pay self
- 0:30 - Observe activity of send to self has appeared
- 0:35 - Get new onchain address
- 0:38 - Paste own onchain address to send maximum amount to self again
- 0:41 - Observe, alongside the newly available input, the two inputs that were just used are shown available (and to be used) <-- BAD
- 0:49 - Dismiss pay screen
- 1:03 - Paste onchain address again to pay to self
- 1:04 - Input smaller amount
- 1:07 - Observe the same two inputs are shown available (and to be used) <-- BAD
https://github.com/user-attachments/assets/09abc87d-1bb4-4856-8a49-28499792c63a
This second video is from a short while after the first (a minute or less). Now only the actual available input is shown. <-- Correct behaviour
Operating system
Android 13 TKQ1.221114.001
Bitkit version
033edb4a46ff8d407baa25587cd5d86f6fc9c6c3
Log output
No response