-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix channel reserve calculation on the sending side
As the variable name implies holder_selected_chan_reserve_msat is intended to be in millisatoshis, but is instead calculated in satoshis. We fix that error here and update the relevant tests to more accurately calculate the expected reserve value and test both success and failure cases. Bug discovered by chanmon_consistency fuzz target.
- Loading branch information
1 parent
23242e7
commit a826a80
Showing
3 changed files
with
33 additions
and
8 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
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