Skip to content

Add unconfirmed transaction pruning when computing closing balance #3119

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

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 Jun 25, 2025

Our node balance computation was simplified in #3096, but it is now too simplistic during closing, where some of the balance may be duplicated between the off-chain part and unconfirmed or recently confirmed transactions.

We deduplicate those by not counting in our off-chain balance of closing channels outputs that are spent by an unconfirmed or recently confirmed transaction that we've included in our on-chain balance.

Fixes #3098

Our node balance computation was simplified in #3096, but it is now too
simplistic during closing, where some of the balance may be duplicated
between the off-chain part and unconfirmed or recently confirmed
transactions.

We deduplicate those by not counting in our off-chain balance of closing
channels outputs that are spent by an unconfirmed or recently confirmed
transaction that we've included in our on-chain balance.

Fixes #3098
@t-bast t-bast requested a review from pm47 June 25, 2025 12:37
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.

Add unconfirmed transaction pruning when computing force-close balance
1 participant