-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lnwallet: calculate balance when not enough to cover htlc fee
This adds a special case that can occur to the balance calculation, namely the case where our balance is large enough to carry a non-dust HTLC, but not large enough to pay for the resulting increase in commitment fee. In this case we'll report a balance just below the dust limit, to allow HTLCs up to this size.
- Loading branch information
Showing
2 changed files
with
91 additions
and
0 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
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