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

fix: do not show duplicated incoming funds from channel closures #755

Merged

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Oct 24, 2024

Fixes #752
Fixes #612

There is overlap in balance from pending closed channels and total onchain balance.

They will show as incoming in the total onchain balance once the channel becomes sweepable. Therefore, this PR no longer manually includes balances from pending closed channels in the "incoming" amount on the savings balance card.

This PR also adds extra balance info that can be retrieved from debug tools -> get balances which is useful for debugging channels that are stuck (e.g. unconfirmed) or to know if the funds on a channel are still locked, and which counterparty the channel is with.

There is overlap in balance from pending closed channels and total onchain balance.

They will show as incoming in the total onchain balance once the channel becomes sweepable.

This PR also adds extra balance info that can be retrieved from debug tools -> get balances
@im-adithya im-adithya merged commit 11f0820 into master Oct 25, 2024
9 checks passed
@im-adithya im-adithya deleted the fix/duplicated-incoming-funds-from-channel-closures branch October 25, 2024 06:05
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.

Improve get balances endpoint Bug: Doubled incoming balance after closing channel (LDK)
2 participants