Expose current dust exposure in ChannelDetails#4470
Expose current dust exposure in ChannelDetails#4470Bortlesboat wants to merge 1 commit intolightningdevkit:mainfrom
Conversation
|
👋 I see @tankyleo was un-assigned. |
06585ba to
c571ad4
Compare
c571ad4 to
4f9b1e5
Compare
Codecov 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:
|
|
🔔 1st Reminder Hey @tankyleo! This PR has been waiting for your review. |
|
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
03c307d
Compare
|
🔔 2nd Reminder Hey @tankyleo! This PR has been waiting for your review. |
03c307d to
b856d80
Compare
|
I'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. |
|
🔔 3rd Reminder Hey @tankyleo! This PR has been waiting for your review. |
|
Hi @tankyleo — no worries if you're busy! Could another maintainer pick this up? Happy to address any feedback quickly. |
|
🔔 4th Reminder Hey @tankyleo! This PR has been waiting for your review. |
|
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!
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
515b244
Compare
|
Done — squashed into a single commit. |
515b244 to
d660c33
Compare
|
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
cb34df1
Compare
Co-authored-by: Codex <codex@openai.com>
cb34df1 to
1ee9480
Compare
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