2

I can't seem to find a config option for discarding all forwards.

Vojtěch Strnad
  • 5,623
  • 1
  • 8
  • 31
Conor
  • 61
  • 5

1 Answers1

2

There's deliberately no way to refuse to forward payments over "public" channels because that's the definition of a "public" channel - one which you are saying you want to accept forwards over.

If you have opted to open private channels (not announced) then accept_forwards_to_priv_channels is what you want (and keep the channels private!).

You can read more about that in our API docs. https://docs.rs/lightning/0.0.113/lightning/util/config/struct.UserConfig.html#structfield.accept_forwards_to_priv_channels

Conor
  • 61
  • 5
  • This question was originally asked by deb.dasit2013 and answered by Matt Corallo on Discord – Conor Feb 05 '23 at 17:28
  • There is a bit of a leap in the explanation between public channels being meant for forwarding, and the recommended setting for private channels. Could you perhaps fill in a bit more context? – Murch Feb 06 '23 at 21:01
  • By default LDK opens private channels unless setting the announced_channel flag to true. There is no option for discarding all forwards for publicly announced channels. A user must ensure the channel is private from the outset and accept_forwards_to_priv_channels, generally HTLC intercept will be supported soon. – Conor Feb 07 '23 at 00:00