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] lnbits audit api - node balance fluctuates (not possible to rely on it e.g. custom implemented killswitch) #2475

Open
gorrdy opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gorrdy
Copy link

gorrdy commented May 1, 2024

Describe the bug
Audit API sometimes returns different wallet balance (node_balance_msats) probably because a temporary channel down or ongoing HTLC or something

/admin/api/v1/audit

E.g. this could be a scenario when lnbits balance is greater than the node balance in 5 minutes
1:{'delta_msats': -45173146, 'node_balance_msats': 17033383, 'lnbits_balance_msats': 62206529}
2:{'delta_msats': -45173146, 'node_balance_msats': 17033383, 'lnbits_balance_msats': 62206529}
3:{'delta_msats': -45173146, 'node_balance_msats': 17033383, 'lnbits_balance_msats': 62206529}
4:{'delta_msats': -45190805, 'node_balance_msats': 17015724, 'lnbits_balance_msats': 62206529}
5:{'delta_msats': -45173146, 'node_balance_msats': 17033383, 'lnbits_balance_msats': 62206529}

This probably slows down the implementation of killswitch in LNbits? Is this a known issue?

If not it would be helpful to get the node balance in such way it is stable.

To Reproduce
Get the response of /admin/api/v1/audit and wait until the node routes the payment or there is a problem with a channel that goes off for some reason.

Expected behavior
Stable value of node_balance_msats

  • LNbits version: 0.12.5 (e9e69d9)
  • Database : postgres
@gorrdy gorrdy added the bug Something isn't working label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant