rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Expose current dust exposure

Open TheBlueMatt opened this issue 2 years ago • 4 comments

re: #2261 we should also ideally expose what our current dust exposure in a channel is

TheBlueMatt avatar May 04 '23 19:05 TheBlueMatt

By exposure do you mean at the counterparty-level or at the network-level? Unclear to me without spec modifications.

ariard avatar May 06 '23 02:05 ariard

The dust exposure we have on our current channel which is limited by the config knob.

TheBlueMatt avatar May 06 '23 22:05 TheBlueMatt

So announce max_dust_htlc_exposure_msat as a new open_channel/accept_channel param or as a new BOLT7 channel_update param ? Or something different ?

ariard avatar May 16 '23 01:05 ariard

So announce max_dust_htlc_exposure_msat as a new open_channel/accept_channel param or as a new BOLT7 channel_update param ? Or something different ?

I think this is just meant to expose the current value as part of ChannelDetails.

wpaulino avatar May 16 '23 18:05 wpaulino

Is this still needed after https://github.com/lightningdevkit/rust-lightning/pull/2442?

SimonAdameit avatar Oct 10 '24 17:10 SimonAdameit

Is this still needed after https://github.com/lightningdevkit/rust-lightning/pull/2442?

Looks like no https://docs.rs/lightning/latest/lightning/ln/channel_state/struct.ChannelDetails.html

vincenzopalazzo avatar Oct 10 '24 23:10 vincenzopalazzo

Well, it wasn't needed, but now it is again....the dust exposure used to just be the sum of dust HTLCs, however in more recent releases it also considers the channel's commitment transaction fee. Ideally we should expose both as a single amount.

TheBlueMatt avatar Oct 16 '24 23:10 TheBlueMatt