-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We were previously only counting the additional HTLC at twice the current feerate. An HTLC in isolation doesn't make much sense: the feerate applies to the whole commit tx. Our fee buffer needs to account for a x2 feerate increase on the commit tx + an additional htlc. Note that this introduces another subtlety. The commit tx fee at twice the current feerate may actually be lower than the commit tx fee at the current feerate (if the commit tx contains many htlcs that are only slightly above the trim threshold).
- Loading branch information
Showing
3 changed files
with
118 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.