-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
update_fee
reserve requirement mismatch (#551)
The splicing update removed the `channelReserve` field from `LocalParams` and always uses a value of 1% of the channel capacity. But that is incorrect for channels that were created before that update and haven't been migrated. For such channels, we will use an incorrect channel reserve which can end up force-closing channels when receiving otherwise valid `update_fee` messages. We temporarily ignore the reserve in this computation and will re-enable it once all users have been migrated to use splicing. We also fix a mismatch between the local and remote dust limit used when computing commit tx fees.
- Loading branch information
Showing
2 changed files
with
12 additions
and
4 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