discovery+server: RetransmitDelay->RetransmitTicker

Also let retransmitStaleChannels take a timestamp, to make it easier to
test.
This commit is contained in:
Johan T. Halseth committed 2019-09-16 10:23:01 +02:00
1 parent 74c9551564
commit e201fbe396
3 files changed
+19 -13

No files matched your search

+1 -1
View File
@@ -719,7 +719,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
NotifyWhenOffline: s.NotifyWhenOffline,
ProofMatureDelta: 0,
TrickleDelay: time.Millisecond * time.Duration(cfg.TrickleDelay),
RetransmitDelay: time.Minute * 30,
RetransmitTicker: ticker.New(time.Minute * 30),
RebroadcastInterval: time.Hour * 24,
WaitingProofStore: waitingProofStore,
MessageStore: gossipMessageStore,