You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ln/refactor: move success/timeout dust limits into helper
This commit pulls calculation of second stage fees into a helper
function. A side effect of this refactor is that it fixes a rounding
issue in commit_and_htlc_tx_fees_sat. Previously, rounding down of
feerate would happen after multiplying by the number of HTLCs. Now the
feerate will be rounded down before multiplying by the number of HTLCs.
This wasn't a serious issue - it would just cause us very slightly
over estimate our dust exposure at certain feerates that needed
rounding. A hard-coded value in test_nondust_htlc_excess_fees_are_dust
is updated to account for this rounding change.
0 commit comments