config+protocol: enable anchor commitments (zero-fee HTLC ) by default

This commit is contained in:
Johan T. Halseth committed 2020-12-15 10:13:25 +01:00
1 parent 1923d40843
commit c92c06400b
4 files changed
+11 -16

No files matched your search

+10
View File
@@ -17,6 +17,10 @@ type ProtocolOptions struct {
// (channels larger than 0.16 BTC) channels, which is the opposite of
// 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"`
}
// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
@@ -24,3 +28,9 @@ type ProtocolOptions struct {
func (l *ProtocolOptions) Wumbo() bool {
return l.WumboChans
}
// NoAnchorCommitments returns true if we have disabled support for the anchor
// commitment type.
func (l *ProtocolOptions) NoAnchorCommitments() bool {
return l.NoAnchors
}