lncfg: add deprecated no-experimental-endorsement config option

Re-adds the old no-experimental-endorsement config option as a hidden,
deprecated alias for no-experimental-accountability. This ensures
backward compatibility for users who have the old option in their
config files after the rename it.
This commit is contained in:
ziggie committed 2026-01-14 09:26:36 +01:00
1 parent 70dfbd284b
commit 04dab619cb
3 files changed
+22 -4

No files matched your search

+9 -2
View File
@@ -77,6 +77,11 @@ type ProtocolOptions struct {
// NoExperimentalAccountabilityOption disables experimental accountability.
NoExperimentalAccountabilityOption bool `long:"no-experimental-accountability" description:"do not forward experimental accountability 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"`
@@ -138,9 +143,11 @@ func (l *ProtocolOptions) NoRouteBlinding() bool {
}
// NoExpAccountability returns true if experimental accountability should be
// disabled.
// disabled. It also checks the deprecated NoExperimentalEndorsementOption for
// backwards compatibility.
func (l *ProtocolOptions) NoExpAccountability() bool {
return l.NoExperimentalAccountabilityOption
return l.NoExperimentalAccountabilityOption ||
l.NoExperimentalEndorsementOption
}
// NoQuiescence returns true if quiescence is disabled.