-
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.
Cancel splice early when missing funds (#744)
When we are splicing out or doing a CPFP on an existing splice, we use our channel balance to pay fees and the LSP doesn't contribute at all. We must have enough funds to pay the mining fees, otherwise we will go through all of the `interactive-tx` protocol but fail at the end when our peer will notice that we're not paying the feerate we said we would. We now fail early in that case, which also lets us provide a better error explaining why the splice attempt was cancelled.
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 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