lncfg: add new legacy protocol option to turn off gossip throttling
This commit is contained in:
parent
7e298f1434
commit
b1fbbcf562
@ -20,3 +20,8 @@ func (l *LegacyProtocol) LegacyOnion() bool {
|
|||||||
func (l *LegacyProtocol) NoStaticRemoteKey() bool {
|
func (l *LegacyProtocol) NoStaticRemoteKey() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NoGossipThrottle returns true if gossip updates shouldn't be throttled.
|
||||||
|
func (l *LegacyProtocol) NoGossipThrottle() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
@ -16,6 +16,12 @@ type LegacyProtocol struct {
|
|||||||
// remote party's output in the commitment. If set to true, then we
|
// remote party's output in the commitment. If set to true, then we
|
||||||
// won't signal StaticRemoteKeyOptional.
|
// won't signal StaticRemoteKeyOptional.
|
||||||
CommitmentTweak bool `long:"committweak" description:"force node to not advertise the new commitment format"`
|
CommitmentTweak bool `long:"committweak" description:"force node to not advertise the new commitment format"`
|
||||||
|
|
||||||
|
// NoGossipUpdateThrottle if true, then gossip updates won't be
|
||||||
|
// throttled using the current set of heuristics. This should mainly be
|
||||||
|
// used for integration tests where we want nearly instant propagation
|
||||||
|
// of gossip updates.
|
||||||
|
NoGossipUpdateThrottle bool `long:"no-gossip-throttle" description:"if true, then gossip updates will not be throttled to once per rebroadcast interval for non keep-alive updates"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LegacyOnion returns true if the old legacy onion format should be used when
|
// LegacyOnion returns true if the old legacy onion format should be used when
|
||||||
@ -30,3 +36,8 @@ func (l *LegacyProtocol) LegacyOnion() bool {
|
|||||||
func (l *LegacyProtocol) NoStaticRemoteKey() bool {
|
func (l *LegacyProtocol) NoStaticRemoteKey() bool {
|
||||||
return l.CommitmentTweak
|
return l.CommitmentTweak
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NoGossipThrottle returns true if gossip updates shouldn't be throttled.
|
||||||
|
func (l *LegacyProtocol) NoGossipThrottle() bool {
|
||||||
|
return l.NoGossipUpdateThrottle
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user