discovery/gossiper: thread IgnoreHistoricalFilters to sync manager
This commit is contained in:
1 file changed
+7
@@ -211,6 +211,12 @@ type Config struct {
|
|||||||
// SubBatchDelay is the delay between sending sub batches of
|
// SubBatchDelay is the delay between sending sub batches of
|
||||||
// gossip messages.
|
// gossip messages.
|
||||||
SubBatchDelay time.Duration
|
SubBatchDelay time.Duration
|
||||||
|
|
||||||
|
// IgnoreHistoricalFilters will prevent syncers from replying with
|
||||||
|
// historical data when the remote peer sets a gossip_timestamp_range.
|
||||||
|
// This prevents ranges with old start times from causing us to dump the
|
||||||
|
// graph on connect.
|
||||||
|
IgnoreHistoricalFilters bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuthenticatedGossiper is a subsystem which is responsible for receiving
|
// AuthenticatedGossiper is a subsystem which is responsible for receiving
|
||||||
@@ -318,6 +324,7 @@ func New(cfg Config, selfKey *btcec.PublicKey) *AuthenticatedGossiper {
|
|||||||
RotateTicker: cfg.RotateTicker,
|
RotateTicker: cfg.RotateTicker,
|
||||||
HistoricalSyncTicker: cfg.HistoricalSyncTicker,
|
HistoricalSyncTicker: cfg.HistoricalSyncTicker,
|
||||||
NumActiveSyncers: cfg.NumActiveSyncers,
|
NumActiveSyncers: cfg.NumActiveSyncers,
|
||||||
|
IgnoreHistoricalFilters: cfg.IgnoreHistoricalFilters,
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user