multi: make ProofMatureDelta configurable

We add a new config option to set the `ProofMatureDelta` so the users
can tune their graphs based on their own preference over the num of
confs found in the announcement signatures.
This commit is contained in:
yyforyongyu committed 2025-01-17 21:44:23 +08:00
1 parent e0a920af44
commit 27a05694cb
5 files changed
+46 -3

No files matched your search

+1 -1
View File
@@ -1118,7 +1118,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
return s.genNodeAnnouncement(nil)
},
ProofMatureDelta: 0,
ProofMatureDelta: cfg.Gossip.AnnouncementConf,
TrickleDelay: time.Millisecond * time.Duration(cfg.TrickleDelay),
RetransmitTicker: ticker.New(time.Minute * 30),
RebroadcastInterval: time.Hour * 24,