Uh oh!
There was an error while loading. Please reload this page.
Expose current dust exposure in ChannelDetails - #4470
Conversation
👋 I see @tankyleo was un-assigned. |
06585ba to
c571ad4Comparec571ad4 to
4f9b1e5CompareCodecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #4470 +/- ##
==========================================
+ Coverage 86.01% 86.19% +0.17%
==========================================
Files 159 160 +1 Lines 105430 107554 +2124 Branches 105430 107554 +2124 ==========================================
+ Hits 90690 92707 +2017 + Misses 12229 12221 -8 - Partials 2511 2626 +115
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ldk-reviews-bot
commented
Mar 11, 2026
🔔 1st Reminder Hey @tankyleo! This PR has been waiting for your review. |
Bortlesboat
commented
Mar 12, 2026
Quick follow-up from my side: I’m treating review-required PRs as top priority this week. If you want any specific changes, rebase, or split, I can turn them around quickly. |
4f9b1e5 to
03c307dCompareldk-reviews-bot
commented
Mar 14, 2026
🔔 2nd Reminder Hey @tankyleo! This PR has been waiting for your review. |
03c307d to
b856d80CompareI've reviewed the entire PR diff thoroughly, checking all changed files against the codebase context I have from prior reviews. Prior review status:
New issues: None found. The implementation is correct:
No issues found. |
ldk-reviews-bot
commented
Mar 16, 2026
🔔 3rd Reminder Hey @tankyleo! This PR has been waiting for your review. |
Bortlesboat
commented
Mar 17, 2026
Hi @tankyleo — no worries if you're busy! Could another maintainer pick this up? Happy to address any feedback quickly. |
ldk-reviews-bot
commented
Mar 18, 2026
🔔 4th Reminder Hey @tankyleo! This PR has been waiting for your review. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Bortlesboat
commented
Mar 20, 2026
Hi — tankyleo appears to be unavailable (4 reminders sent). Could another reviewer pick this up? It's a small addition exposing dust exposure values that are already computed internally. Happy to address any feedback. |
TheBlueMatt
left a comment
There was a problem hiding this comment.
Two small things, one that actually needs fixing, otherwise we'll land this. Thanks!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TheBlueMatt
left a comment
There was a problem hiding this comment.
Please feel free to squash the fixup commits down so that the git history only contains the one main commit
40ce774 to
515b244CompareBortlesboat
commented
Apr 8, 2026
Done — squashed into a single commit. |
515b244 to
d660c33CompareUh oh!
There was an error while loading. Please reload this page.
TheBlueMatt
commented
Apr 14, 2026
Please address the claude comment - its correct, we should drop that allow i think it snuck in from a back rebase. Also please feel free to squash the fixup commit again. |
d660c33 to
cb34df1CompareCo-authored-by: Codex <codex@openai.com>
cb34df1 to
1ee9480CompareUh oh!
There was an error while loading. Please reload this page.
Summary
Adds a
current_dust_exposure_msatfield toChannelDetailsthat surfaces the current total dust exposure on a channel.ChannelConfig::max_dust_htlc_exposureto monitor how close a channel is to its dust limitOption<u64>,Nonefor objects serialized prior to 0.2.1Implementation
dust_exposure_msattoAvailableBalances— computed asmax(local_dust_exposure_msat, remote_dust_exposure_msat)inget_available_balances(tx_builder.rs)current_dust_exposure_msat: Option<u64>toChannelDetailsstruct, populated from the balance computation infrom_channelFixes#2264