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
2025-01-17 21:31:25 +08:00
parent e0a920af44
commit 27a05694cb
5 changed files with 46 additions and 3 deletions

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,