<p>You can set the option <code>--maxpendingchannels=0</code> to disallow peers to open channels to your node.</p>

CC BY-SA 4.0
2020-01-02T21:54:06.393Z
2020-01-02T21:54:06.393Z
guggero
<p>I have a <code>lnd</code> node that I would like to to cycle down completely. I would like to close all its channels and prevent that the node participates in any new channels while I'm waiting for the force-closed channels to mature.</p>

<p>What settings do I need to use in <code>lnd</code> to prevent my node from creating new channels, and to decline any new inbound channels?</p>

CC BY-SA 4.0
2019-10-29T18:06:55.317Z
LND has a ChannelAcceptor call which is [available in API](https://api.lightning.community/#channelacceptor) that allows you to block all incoming channel requests. However, I'm unsure if it is available in the RPC interface on the daemon with `ln-cli`
Ugam Kamat
<lightning-network-daemon><ln-opening-channels><ln-closing-channels>
How do I prevent lnd from participating in new channels?
Murch
# How do I prevent lnd from participating in new channels?

(Asked by: username_0 on 2019-10-29)

I have a `lnd` node that I would like to to cycle down completely. I would like to close all its channels and prevent that the node participates in any new channels while I'm waiting for the force-closed channels to mature.

What settings do I need to use in `lnd` to prevent my node from creating new channels, and to decline any new inbound channels?

**Tags:** lightning-network-daemon, ln-opening-channels, ln-closing-channels

> **Comments:**
> **username_1**: LND has a ChannelAcceptor call which is [available in API](https://api.lightning.community/#channelacceptor) that allows you to block all incoming channel requests. However, I'm unsure if it is available in the RPC interface on the daemon with `ln-cli`  

---

## 1 answers

### Answer by username_2 on 2020-01-02. Score: 2 | Accepted answer

You can set the option `--maxpendingchannels=0` to disallow peers to open channels to your node.


---

