Files
lightning/bitcoin
niftynei 04b6ad06cb change fees: more accurate rounding for change amount
We were getting off-by-one for the total amount that the change is for,
since it rounds the fee *down*, independent of the total weight of the
entire tx.

We fix this by using the diff btw the fee of the total weight (w/ and
w/o the change output)
2021-07-19 16:13:24 -04:00
..
2020-09-02 13:21:32 +02:00
2020-10-20 14:27:19 +10:30
2020-10-20 14:27:19 +10:30
2021-06-03 11:24:33 +09:30
2015-06-25 13:48:05 +09:30

These are standard bitcoin manipulation routines which should be
provided by any normal bitcoin library in whatever language you choose.

The ones here are standalone ones taken from bitcoin core and some I
wrote, many taken from bitcoin-iterate and pasted in here.