Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lncfg/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ type ProtocolOptions struct {
// NoExperimentalEndorsementOption disables experimental endorsement.
NoExperimentalEndorsementOption bool `long:"no-experimental-endorsement" description:"do not forward experimental endorsement signals"`

// NoExperimentalEndorsementOption is the deprecated name for
// NoExperimentalAccountabilityOption. It is hidden and will be removed
// in a future release.
NoExperimentalEndorsementOption bool `long:"no-experimental-endorsement" hidden:"true" description:"deprecated: use no-experimental-accountability instead"`

// CustomMessage allows the custom message APIs to handle messages with
// the provided protocol numbers, which fall outside the custom message
// number range.
Expand Down Expand Up @@ -139,10 +144,19 @@ func (l *ProtocolOptions) NoRouteBlinding() bool {
return l.NoRouteBlindingOption
}

<<<<<<< HEAD
// NoExperimentalEndorsement returns true if experimental endorsement should
// be disabled.
func (l *ProtocolOptions) NoExperimentalEndorsement() bool {
return l.NoExperimentalEndorsementOption
=======
// NoExpAccountability returns true if experimental accountability should be
// disabled. It also checks the deprecated NoExperimentalEndorsementOption for
// backwards compatibility.
func (l *ProtocolOptions) NoExpAccountability() bool {
return l.NoExperimentalAccountabilityOption ||
l.NoExperimentalEndorsementOption
>>>>>>> 04dab619c (lncfg: add deprecated no-experimental-endorsement config option)
}

// NoQuiescence returns true if quiescence is disabled.
Expand Down
14 changes: 14 additions & 0 deletions lncfg/protocol_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ type ProtocolOptions struct {
// NoExperimentalEndorsementOption disables experimental endorsement.
NoExperimentalEndorsementOption bool `long:"no-experimental-endorsement" description:"do not forward experimental endorsement signals"`

// NoExperimentalEndorsementOption is the deprecated name for
// NoExperimentalAccountabilityOption. It is hidden and will be removed
// in a future release.
NoExperimentalEndorsementOption bool `long:"no-experimental-endorsement" hidden:"true" description:"deprecated: use no-experimental-accountability instead"`

// NoQuiescenceOption disables quiescence for all channels.
NoQuiescenceOption bool `long:"no-quiescence" description:"do not allow or advertise quiescence for any channel"`

Expand Down Expand Up @@ -137,10 +142,19 @@ func (l *ProtocolOptions) NoRouteBlinding() bool {
return l.NoRouteBlindingOption
}

<<<<<<< HEAD
// NoExperimentalEndorsement returns true if experimental endorsement should
// be disabled.
func (l *ProtocolOptions) NoExperimentalEndorsement() bool {
return l.NoExperimentalEndorsementOption
=======
// NoExpAccountability returns true if experimental accountability should be
// disabled. It also checks the deprecated NoExperimentalEndorsementOption for
// backwards compatibility.
func (l *ProtocolOptions) NoExpAccountability() bool {
return l.NoExperimentalAccountabilityOption ||
l.NoExperimentalEndorsementOption
>>>>>>> 04dab619c (lncfg: add deprecated no-experimental-endorsement config option)
}

// NoQuiescence returns true if quiescence is disabled.
Expand Down
4 changes: 4 additions & 0 deletions sample-lnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,10 @@
; Set to disable experimental endorsement signaling.
; protocol.no-experimental-endorsement=false

; DEPRECATED: Use protocol.no-experimental-accountability instead.
; Set to disable experimental endorsement signaling.
; protocol.no-experimental-endorsement=false

; Set to enable support for RBF based coop close.
; protocol.rbf-coop-close=false

Expand Down