From 7a981abd69308e9d522ec94905f181439a1b1dba Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 27 Mar 2023 22:25:22 +0400 Subject: [PATCH] update comment to reflect new defaults Closes #13338 --- client/authority-discovery/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/authority-discovery/src/lib.rs b/client/authority-discovery/src/lib.rs index 24fef864c36ff..bafd9acfea19d 100644 --- a/client/authority-discovery/src/lib.rs +++ b/client/authority-discovery/src/lib.rs @@ -89,11 +89,11 @@ pub struct WorkerConfig { impl Default for WorkerConfig { fn default() -> Self { Self { - // Kademlia's default time-to-live for Dht records is 36h, republishing records every - // 24h through libp2p-kad. Given that a node could restart at any point in time, one can + // Kademlia's default time-to-live for Dht records is 48h, republishing records every + // 22h through libp2p-kad. Given that a node could restart at any point in time, one can // not depend on the republishing process, thus publishing own external addresses should // happen on an interval < 36h. - max_publish_interval: Duration::from_secs(1 * 60 * 60), + max_publish_interval: Duration::from_secs(1 * 60 * 60), // 1h keystore_refresh_interval: Duration::from_secs(60), // External addresses of remote authorities can change at any given point in time. The // interval on which to trigger new queries for the current and next authorities is a