From fcdac089e5b74b71d259e1ca4b8214fb620d0c4e Mon Sep 17 00:00:00 2001 From: bochaco Date: Mon, 25 Sep 2023 14:40:23 -0300 Subject: [PATCH] chore: set higher D value --- sn_networking/src/driver.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sn_networking/src/driver.rs b/sn_networking/src/driver.rs index daddd192f1..442719ea6d 100644 --- a/sn_networking/src/driver.rs +++ b/sn_networking/src/driver.rs @@ -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(25) + .mesh_n_low(24) + .mesh_n_high(48) + .build() + .unwrap(); // Set the message authenticity - Here we expect the publisher // to sign the message with their key.