Skip to content

Commit

Permalink
Update v0.12.2 gossip params (#1449)
Browse files Browse the repository at this point in the history
## Issue Addressed
#1422
  • Loading branch information
divagant-martian committed Aug 6, 2020
1 parent 6206d8e commit 924ba66
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions beacon_node/eth2_libp2p/src/config.rs
Expand Up @@ -95,11 +95,18 @@ impl Default for Config {
// parameter.
let gs_config = GossipsubConfigBuilder::new()
.max_transmit_size(GOSSIP_MAX_SIZE)
.heartbeat_interval(Duration::from_secs(1))
.heartbeat_interval(Duration::from_millis(700))
.mesh_n(6)
.mesh_n_low(5)
.mesh_n_high(12)
.gossip_lazy(6)
.fanout_ttl(Duration::from_secs(60))
.history_length(6)
.history_gossip(3)
.validate_messages() // require validation before propagation
.validation_mode(ValidationMode::Permissive)
// Prevent duplicates by caching messages from an epoch + 1 slot amount of time (33*12)
.duplicate_cache_time(Duration::from_secs(396))
// prevent duplicates for 550 heartbeats(700millis * 550) = 385 secs
.duplicate_cache_time(Duration::from_secs(385))
.message_id_fn(gossip_message_id)
.build();

Expand Down

0 comments on commit 924ba66

Please sign in to comment.