lncfg: add protocol config option for script enforced lease support

This commit is contained in:
Wilmer Paulino authored and Olaoluwa Osuntokun committed 2021-10-19 18:30:12 -07:00
1 parent e590abc7be
commit 35fd985118
3 files changed
+29

No files matched your search

+11
View File
@@ -24,6 +24,11 @@ type ProtocolOptions struct {
// 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"`
// NoScriptEnforcedLease should be set if we don't want to support
// opening or accepting channels having the script enforced commitment
// type for leased channel.
NoScriptEnforcedLease bool `long:"no-script-enforced-lease" description:"disable support for script enforced lease commitments"`
}
// Wumbo returns true if lnd should permit the creation and acceptance of wumbo
@@ -37,3 +42,9 @@ func (l *ProtocolOptions) Wumbo() bool {
func (l *ProtocolOptions) NoAnchorCommitments() bool {
return l.NoAnchors
}
// NoScriptEnforcementLease returns true if we have disabled support for the
// script enforcement commitment type for leased channels.
func (l *ProtocolOptions) NoScriptEnforcementLease() bool {
return l.NoScriptEnforcedLease
}