Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel splice early when missing funds #744

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jan 7, 2025

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.

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.
@t-bast t-bast requested review from pm47 and remyers January 7, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant