In keeping with the BOLT #2 specs, the non-funding counterparty signifies which affirmation depth it’s prepared to simply accept through the minimum_depth discipline within the accept_channel message.
In LDK you may configure this for inbound channels through ChannelHandshakeConfig::minimum_depth and the opening counterparty can restrict what most worth it’s prepared to simply accept through ChannelHandshakeLimits::max_minimum_depth.
Word that you could be additionally wish to allow zero affirmation channels. For outbound channels you may merely allow this through setting ChannelHandshakeLimits::trust_own_fundings_0conf. As inbound zero affirmation channels are a danger for the accepting celebration, LDK requires you to manually examine and settle for every such channel. You possibly can allow this by setting UserConfig::manually_accept_inbound_channels, upon which you will begin receiving an OpenChannelRequest occasion for every inbound channel. For every request you wish to settle for you then have to name ChannelManager::accept_inbound_channel_from_trusted_peer_0conf, or can force-close the channel in any other case.
