<p>There's deliberately no way to refuse to forward payments over &quot;public&quot; channels because that's the definition of a &quot;public&quot; channel - one which you are saying you want to accept forwards over.</p>
<p>If you have opted to open private channels (not announced) then  <code>accept_forwards_to_priv_channels</code> is what you want (and keep the channels private!).</p>
<p>You can read more about that in our API docs.
<a href="https://docs.rs/lightning/0.0.113/lightning/util/config/struct.UserConfig.html#structfield.accept_forwards_to_priv_channels" rel="nofollow noreferrer">https://docs.rs/lightning/0.0.113/lightning/util/config/struct.UserConfig.html#structfield.accept_forwards_to_priv_channels</a></p>

CC BY-SA 4.0
2023-02-05T17:28:09.240Z
This question was originally asked by deb.dasit2013 and answered by Matt Corallo on Discord
Conor
CC BY-SA 4.0
2023-02-06T21:01:19.737Z
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
CC BY-SA 4.0
2023-02-07T00:00:40.203Z
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
CC BY-SA 4.0
2023-02-05T17:27:09.927Z
2023-02-06T23:52:31.133Z
2023-02-06T23:52:31.133Z
Conor
<p>I can't seem to find a config option for discarding all forwards.</p>

<lightning-routing><lightning-development-kit>
Is there any way to stop forwarding payments through my LDK node?
Conor
# Is there any way to stop forwarding payments through my LDK node?

(Asked by: username_0 on 2023-02-05)

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

**Tags:** lightning-routing, lightning-development-kit


---

## 1 answers

### Answer by username_0 on 2023-02-05. Score: 2 | Accepted answer

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>

> **Comments:**
> **username_0**: This question was originally asked by deb.dasit2013 and answered by Matt Corallo on Discord  
> **username_1**: 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?  
> **username_0**: 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.  

---

