How can I settle for Lightning channels with fewer confirmations in LDK?

on

|

views

and

comments


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.

Share this
Tags

Must-read

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here