Skip to content

Commit

Permalink
lncfg: make anchor commitments opt-in
Browse files Browse the repository at this point in the history
This commit reverts the anchors-by-default change, and instead make
anchor commitments and opt-in option. The plan is to enable anchors by
default further down the line.
  • Loading branch information
halseth committed Jan 14, 2021
1 parent f057f2c commit c86761f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 44 deletions.
9 changes: 3 additions & 6 deletions lncfg/protocol.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !rpctest

package lncfg

// ProtocolOptions is a struct that we use to be able to test backwards
Expand All @@ -20,9 +18,8 @@ type ProtocolOptions struct {
// mini.
WumboChans bool `long:"wumbo-channels" description:"if set, then lnd will create and accept requests for channels larger chan 0.16 BTC"`

// 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"`
// Anchors enables anchor commitments.
Anchors bool `long:"anchors" description:"enable support for anchor commitments"`
}

// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
Expand All @@ -34,5 +31,5 @@ func (l *ProtocolOptions) Wumbo() bool {
// NoAnchorCommitments returns true if we have disabled support for the anchor
// commitment type.
func (l *ProtocolOptions) NoAnchorCommitments() bool {
return l.NoAnchors
return !l.Anchors
}
38 changes: 0 additions & 38 deletions lncfg/protocol_rpctest.go

This file was deleted.

0 comments on commit c86761f

Please sign in to comment.