From 1f1f7be77021d419ce3a0a5b151b67b209a5e61c Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 10 Feb 2021 14:38:48 -0800 Subject: [PATCH] Revert "lncfg: add new legacy protocol option to turn off gossip throttling" This reverts commit b1fbbcf5622317575b0917593cfd16602043621d. --- lncfg/protocol_legacy_off.go | 5 ----- lncfg/protocol_legacy_on.go | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/lncfg/protocol_legacy_off.go b/lncfg/protocol_legacy_off.go index c0a8ef8d..060569d8 100644 --- a/lncfg/protocol_legacy_off.go +++ b/lncfg/protocol_legacy_off.go @@ -20,8 +20,3 @@ func (l *LegacyProtocol) LegacyOnion() bool { func (l *LegacyProtocol) NoStaticRemoteKey() bool { return false } - -// NoGossipThrottle returns true if gossip updates shouldn't be throttled. -func (l *LegacyProtocol) NoGossipThrottle() bool { - return false -} diff --git a/lncfg/protocol_legacy_on.go b/lncfg/protocol_legacy_on.go index ee0ee3b4..712d5fed 100644 --- a/lncfg/protocol_legacy_on.go +++ b/lncfg/protocol_legacy_on.go @@ -16,12 +16,6 @@ type LegacyProtocol struct { // remote party's output in the commitment. If set to true, then we // won't signal StaticRemoteKeyOptional. 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 @@ -36,8 +30,3 @@ func (l *LegacyProtocol) LegacyOnion() bool { func (l *LegacyProtocol) NoStaticRemoteKey() bool { return l.CommitmentTweak } - -// NoGossipThrottle returns true if gossip updates shouldn't be throttled. -func (l *LegacyProtocol) NoGossipThrottle() bool { - return l.NoGossipUpdateThrottle -}