2019-08-06 07:34:46 +03:00
|
|
|
// +build !dev
|
|
|
|
|
|
|
|
package lncfg
|
|
|
|
|
2020-03-06 18:11:48 +03:00
|
|
|
// ProtocolOptions is a struct that we use to be able to test backwards
|
2019-08-06 07:34:46 +03:00
|
|
|
// compatibility of protocol additions, while defaulting to the latest within
|
2020-03-06 18:11:48 +03:00
|
|
|
// lnd, or to enable experimental protocol changes.
|
|
|
|
type ProtocolOptions struct {
|
2019-08-06 07:34:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// LegacyOnion returns true if the old legacy onion format should be used when
|
|
|
|
// we're an intermediate or final hop. This controls if we set the
|
|
|
|
// TLVOnionPayloadOptional bit or not.
|
2020-03-06 18:11:48 +03:00
|
|
|
func (l *ProtocolOptions) LegacyOnion() bool {
|
2019-08-06 07:34:46 +03:00
|
|
|
return false
|
|
|
|
}
|
2019-09-11 15:44:31 +03:00
|
|
|
|
2020-03-06 18:11:48 +03:00
|
|
|
// NoStaticRemoteKey returns true if the old commitment format with a tweaked
|
|
|
|
// remote key should be used for new funded channels.
|
|
|
|
func (l *ProtocolOptions) NoStaticRemoteKey() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
// AnchorCommitments returns true if support for the the anchor commitment type
|
|
|
|
// should be signaled.
|
|
|
|
func (l *ProtocolOptions) AnchorCommitments() bool {
|
2019-09-11 15:44:31 +03:00
|
|
|
return false
|
|
|
|
}
|