From c6ba5d11f1e0e343e3bbbe515600a7a7ce2ced6e Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 26 Jun 2024 17:27:57 -0700 Subject: [PATCH] lncfg: add new config option for taproot overlay chans --- lncfg/protocol.go | 4 ++++ lncfg/protocol_integration.go | 4 ++++ sample-lnd.conf | 3 +++ 3 files changed, 11 insertions(+) diff --git a/lncfg/protocol.go b/lncfg/protocol.go index d86613188..c670b1894 100644 --- a/lncfg/protocol.go +++ b/lncfg/protocol.go @@ -31,6 +31,10 @@ type ProtocolOptions struct { // experimental simple taproot chans commitment type. TaprootChans bool `long:"simple-taproot-chans" description:"if set, then lnd will create and accept requests for channels using the simple taproot commitment type"` + // TaprootOverlayChans should be set if we want to enable support for + // the experimental taproot overlay chan type. + TaprootOverlayChans bool `long:"simple-taproot-overlay-chans" description:"if set, then lnd will create and accept requests for channels using the taproot overlay commitment type"` + // NoAnchors should be set if we don't want to support opening or accepting // channels having the anchor commitment type. NoAnchors bool `long:"no-anchors" description:"disable support for anchor commitments"` diff --git a/lncfg/protocol_integration.go b/lncfg/protocol_integration.go index e568b6b9a..5c5150a0e 100644 --- a/lncfg/protocol_integration.go +++ b/lncfg/protocol_integration.go @@ -33,6 +33,10 @@ type ProtocolOptions struct { // experimental simple taproot chans commitment type. TaprootChans bool `long:"simple-taproot-chans" description:"if set, then lnd will create and accept requests for channels using the simple taproot commitment type"` + // TaprootOverlayChans should be set if we want to enable support for + // the experimental taproot overlay chan type. + TaprootOverlayChans bool `long:"simple-taproot-overlay-chans" description:"if set, then lnd will create and accept requests for channels using the taproot overlay commitment type"` + // Anchors enables anchor commitments. // TODO(halseth): transition itests to anchors instead! Anchors bool `long:"anchors" description:"enable support for anchor commitments"` diff --git a/sample-lnd.conf b/sample-lnd.conf index 56d66b595..05ebd265d 100644 --- a/sample-lnd.conf +++ b/sample-lnd.conf @@ -1324,6 +1324,9 @@ ; Set to enable support for the experimental taproot channel type. ; protocol.simple-taproot-chans=false +; Set to enable support for the experimental taproot overlay channel type. +; protocol.simple-taproot-overlay-chans=false + ; Set to disable blinded route forwarding. ; protocol.no-route-blinding=false