Open nicbus opened 7 months ago
Yes, you are right in your assumption. I remember writing that logic, but it seems somehow it is skipped. We need to move the issue into BP wallet since it happens there.
Suppose Alice has one UTXO with 2000 sats. 2000 -> 1600 -> 1200 -> 800 -> 400 (it won't be able to broadcast anymore)
Suppose Alice has one UTXO with 2000 sats. 2000 -> 1600 -> 1200 -> 800 -> 400 (it won't be able to broadcast anymore)
It would - you just need to add more tx inputs and feed additional sats into the witness transaction
Re-opening and changing the name as explained in https://github.com/BP-WG/bp-wallet/issues/13#issuecomment-2021330041
Now, there is the question: when and how should we use non-RGB inputs for moving some BTCs to RGB outputs.
In other words, this situation is not a bug but a feature - however possibly bad UX. I just do not know how to make it better: I assume many wallets will differenciate BTC and RGB balances, and if some BTC are "disappearing" after RGB transactions it would be even worse UX...
I agree that using funds from the "BTC balance" without prior user consent would be bad UX.
I propose doing something similar to what rgb-lib does to handle this. Specifically, I would:
This is a large feature request, and since rgb
cli is not a mainstream wallet I propose to postpone this for v0.12. End-users will be able to do that anyway with proper mobile and web wallets build with rgb-lib
Trying to execute a few transfers using this branch of rgb-sandbox I run into the following error:
The wallet should have enough bitcoins as the unspents come up as:
I guess this happens because the input selection is not adding more inputs if needed to cover fees (or outputs), but I haven't dug deeper than this.