For Cashtab users with staking reward utxos in their wallet -- ignore unspendable staking reward utxos in
- The sendXec function
- The onMax function used to calculate the max sendable amount in a wallet
Differential D15181
[Cashtab] Ignore immature coinbase utxos in sendXec function bytesofman on Jan 16 2024, 17:20. Authored by
Details
For Cashtab users with staking reward utxos in their wallet -- ignore unspendable staking reward utxos in
npm test In a wallet with staking rewards, npm start, verify result of onMax on SendXec screen does not include recent staking rwds
Diff Detail
Event TimelineComment Actions Still more work to be done for this feature to be considered complete. However, I believe it's worth landing this as-is while that work continues, since it will fix a bug. The additional work will generally improve the app but require some refactors. Without it, there is an edge case where the user may receive an 'insufficient' funds error if they try to send less than their total balance but more than their spendable balance. I think this is acceptable behavior for say, a couple of days, in order to patch the issue of any staking rewards potentially rendering a wallet unusable.
Comment Actions This is incomplete for sure, but it's a strict improvement over the current situation so I have no problem with this |