2019-08-06 07:34:46 +03:00
|
|
|
// +build !dev
|
|
|
|
|
|
|
|
package lncfg
|
|
|
|
|
2020-07-09 00:26:05 +03:00
|
|
|
// Legacy is a sub-config that houses all the legacy protocol options. These
|
|
|
|
// are mostly used for integration tests as most modern nodes shuld always run
|
|
|
|
// with them on by default.
|
|
|
|
type LegacyProtocol 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-07-09 00:26:05 +03:00
|
|
|
func (l *LegacyProtocol) 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.
|
2020-07-09 00:26:05 +03:00
|
|
|
func (l *LegacyProtocol) NoStaticRemoteKey() bool {
|
2019-09-11 15:44:31 +03:00
|
|
|
return false
|
|
|
|
}
|