airbitz-ios-gui icon indicating copy to clipboard operation
airbitz-ios-gui copied to clipboard

Max spend fails to calculate fees, or does so at the wrong time?

Open rynote opened this issue 10 years ago • 2 comments

'Max' button used to work to spend all outputs in a wallet. Since the latest update whenever you select 'Max' you then get red text saying 'Insufficient Funds'. Subtracting .0001 from the amount will usually clear it up and allow you to send, but then you end up with dust in the wallet.

rynote avatar Jul 01 '15 16:07 rynote

Recently found that sometimes just reducing the amount created by 'max' by 1 satoshi clears out the wallet. Not sure if that was just by chance recently though.

rynote avatar Sep 03 '15 21:09 rynote

I fixed this a while ago, but I'm not sure if has made its way into the latest release or not. I thought we updated the app with the fix, but maybe that was only on Android.

The gist of the bug was that, although we found outputs correctly, we didn't subtract enough money to cover the mining fee exactly. The fees use a sliding scale based on the value of the transaction, which, in this case, depends on the amount of fees. This created a data-dependency loop which messed things up.

swansontec avatar Sep 13 '15 06:09 swansontec