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

Bug: Doubled incoming balance after closing channel (LDK) #612

Open
rolznz opened this issue Sep 4, 2024 · 4 comments
Open

Bug: Doubled incoming balance after closing channel (LDK) #612

rolznz opened this issue Sep 4, 2024 · 4 comments
Milestone

Comments

@rolznz
Copy link
Contributor

rolznz commented Sep 4, 2024

image

@rolznz rolznz added this to the v1.8.0 milestone Sep 4, 2024
@jpl-btc
Copy link

jpl-btc commented Sep 4, 2024

This had a follow up -> The visualization bug part 2:
Finally those funds were settled and are in my Savings Balance.
However, it seems The Pending Closed Channels notification, continue to be there, and there is a ghost sum of exactly half of what appeared before on the incomings sats small grey section of the Savings Balance box.
image

@jpl-btc
Copy link

jpl-btc commented Sep 4, 2024

Part 3: After some blocks confirmations, the problems of part 2 disappeared. And now everything is as it should be.
image

@rolznz
Copy link
Contributor Author

rolznz commented Sep 10, 2024

There is probably some overlap in LightningBalances and PendingBalancesFromChannelClosures https://github.com/getAlby/hub/blob/master/lnclient/ldk/ldk.go#L1000

If so, we could check the channel ID to ensure the balance from the same channel is not added twice - this is not right because we can see in the first screenshot, the correct balance is shown in the alert above the channels table.

EDIT: this might be because in the frontend we add the PendingBalancesFromChannelClosures to the TotalOnchainBalanceSats and there is some overlap there. See https://github.com/getAlby/hub/blob/master/frontend/src/screens/channels/Channels.tsx#L310-L312

Needs reproducing first and to address both issues brought up by JP.

@rolznz rolznz changed the title Bug: Doubled incoming balance after closing channel Bug: Doubled incoming balance after closing channel (LDK) Sep 10, 2024
@jpl-btc
Copy link

jpl-btc commented Sep 10, 2024

If this happens again I'll record it

@rolznz rolznz modified the milestones: v1.8.0, v1.9.0 Sep 12, 2024
@rolznz rolznz modified the milestones: v1.10.0, v1.11.0 Sep 19, 2024
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

No branches or pull requests

2 participants