2021-08-23 10:35:48 +02:00
|
|
|
//go:build !dev
|
2019-08-06 06:34:46 +02:00
|
|
|
// +build !dev
|
|
|
|
|
|
|
|
package lncfg
|
|
|
|
|
2020-07-08 23:26:05 +02:00
|
|
|
// Legacy is a sub-config that houses all the legacy protocol options. These
|
2022-01-13 17:29:43 +01:00
|
|
|
// are mostly used for integration tests as most modern nodes should always run
|
2020-07-08 23:26:05 +02:00
|
|
|
// with them on by default.
|
|
|
|
type LegacyProtocol struct {
|
2019-08-06 06:34:46 +02: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-08 23:26:05 +02:00
|
|
|
func (l *LegacyProtocol) LegacyOnion() bool {
|
2019-08-06 06:34:46 +02:00
|
|
|
return false
|
|
|
|
}
|
2019-09-11 14:44:31 +02:00
|
|
|
|
2020-03-06 16:11:48 +01:00
|
|
|
// NoStaticRemoteKey returns true if the old commitment format with a tweaked
|
|
|
|
// remote key should be used for new funded channels.
|
2020-07-08 23:26:05 +02:00
|
|
|
func (l *LegacyProtocol) NoStaticRemoteKey() bool {
|
2019-09-11 14:44:31 +02:00
|
|
|
return false
|
|
|
|
}
|