-
Notifications
You must be signed in to change notification settings - Fork 366
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
Remove AvailableBalances::balance_msat #3243
Remove AvailableBalances::balance_msat #3243
Conversation
31a40a2
to
64dd5d1
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3243 +/- ##
==========================================
- Coverage 89.63% 89.62% -0.01%
==========================================
Files 126 126
Lines 102166 102154 -12
Branches 102166 102154 -12
==========================================
- Hits 91572 91555 -17
- Misses 7869 7874 +5
Partials 2725 2725 ☔ View full report in Codecov by Sentry. |
Can we mark these as |
Yeah, that'll be fair. |
I'll leave this one open until 125 and then open a separate deprecation PR. |
64dd5d1
to
890caa2
Compare
Can probably un-draft + rebase. |
The ChannelMonitor::get_claimable_balances and ChainMonitor::get_claimable_balances methods provide a more straightforward approach to the balance of a channel, which satisfies most use cases. The computation of AvailableBalances::balance_msat is complex and originally had a different purpose that is not applicable anymore. Co-authored-by: Willem Van Lint <[email protected]>
890caa2
to
59f1689
Compare
We can now (re)remove this field after the merging of #3212.
Context from original (reverted) PR authored by @wvanlint (#2476):