Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bolt3: Clarify order of operations for HTLC amount calculation (#1020)
The order of operations is now more clearly specified as: HTLC output amount = (`amount_msat` / 1000) - (fees in satoshis) where all divisions are rounded down. This is required to avoid issues in rounding if we were to take HTLC output amount = (`amount_msat` - (`feerate_per_kw` * weight)) / 1000 and then rounded down.
- Loading branch information