Skip to content

Commit

Permalink
chore: set higher D value
Browse files Browse the repository at this point in the history
  • Loading branch information
bochaco committed Sep 25, 2023
1 parent e88074d commit 095a0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion sn_networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,12 @@ impl NetworkBuilder {

// Gossipsub behaviour
// set default parameters for gossipsub
let gossipsub_config = libp2p::gossipsub::Config::default();
let gossipsub_config = libp2p::gossipsub::ConfigBuilder::default()
.mesh_n(30)
.mesh_n_low(29)
.mesh_n_high(60)
.build()
.unwrap();

// Set the message authenticity - Here we expect the publisher
// to sign the message with their key.
Expand Down
2 changes: 1 addition & 1 deletion sn_node/tests/msgs_over_gossipsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn msgs_over_gossipsub() -> Result<()> {
println!("Listening to node events...");
let mut count = 0;

let _ = timeout(Duration::from_millis(10000), async {
let _ = timeout(Duration::from_millis(4000), async {
let mut stream = response.into_inner();
while let Some(Ok(e)) = stream.next().await {
match NodeEvent::from_bytes(&e.event) {
Expand Down

0 comments on commit 095a0e5

Please sign in to comment.