2

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

1 Answer 1

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

3
  • This question was originally asked by deb.dasit2013 and answered by Matt Corallo on Discord
    – Conor
    Feb 5 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 6 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 7 at 0:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.