rn-ldk icon indicating copy to clipboard operation
rn-ldk copied to clipboard

0 conf

Open Overtorment opened this issue 2 years ago • 0 comments

Matt Corallo
BOT
 — 15/08/2022
for outbound channels, zero conf just requires trust_own_funding_0conf
for inbound, you have to opt into trust on a per-channel basis - you have to set https://docs.rs/lightning/latest/lightning/util/config/struct.UserConfig.html#structfield.manually_accept_inbound_channels then you have to handle the OpenChannelRequest event (https://docs.rs/lightning/latest/lightning/util/events/enum.Event.html#variant.OpenChannelRequest)
which can either be handled by calling accept_inbound_channel
or by calling accept_inbound_channel_from_trusted_peer_0conf
for 0conf

Overtorment avatar Aug 18 '22 18:08 Overtorment