Skip to content

Commit 7a981ab

Browse files
committed
update comment to reflect new defaults
Closes paritytech#13338
1 parent dfd5c3e commit 7a981ab

File tree

1 file changed

+3
-3
lines changed
  • client/authority-discovery/src

1 file changed

+3
-3
lines changed

client/authority-discovery/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ pub struct WorkerConfig {
8989
impl Default for WorkerConfig {
9090
fn default() -> Self {
9191
Self {
92-
// Kademlia's default time-to-live for Dht records is 36h, republishing records every
93-
// 24h through libp2p-kad. Given that a node could restart at any point in time, one can
92+
// Kademlia's default time-to-live for Dht records is 48h, republishing records every
93+
// 22h through libp2p-kad. Given that a node could restart at any point in time, one can
9494
// not depend on the republishing process, thus publishing own external addresses should
9595
// happen on an interval < 36h.
96-
max_publish_interval: Duration::from_secs(1 * 60 * 60),
96+
max_publish_interval: Duration::from_secs(1 * 60 * 60), // 1h
9797
keystore_refresh_interval: Duration::from_secs(60),
9898
// External addresses of remote authorities can change at any given point in time. The
9999
// interval on which to trigger new queries for the current and next authorities is a

0 commit comments

Comments
 (0)