Skip to content

Commit

Permalink
lncfg: add new config option for taproot overlay chans
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef authored and guggero committed Sep 19, 2024
1 parent 8045595 commit 4ccb60a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lncfg/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 4 additions & 0 deletions lncfg/protocol_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
3 changes: 3 additions & 0 deletions sample-lnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4ccb60a

Please sign in to comment.