Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions anchor/network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ async fn build_anchor_behaviour(
.duplicate_cache_time(duplicate_cache_time)
.message_id_fn(gossip_message_id)
.flood_publish(false)
.validation_mode(ValidationMode::Permissive)
.validation_mode(ValidationMode::Anonymous)
.mesh_n(8) //D
.mesh_n_low(6) // Dlo
.mesh_n_high(12) // Dhi
Expand All @@ -362,9 +362,8 @@ async fn build_anchor_behaviour(
.max_ihave_messages(32)
.build()?;

let gossipsub =
gossipsub::Behaviour::new(MessageAuthenticity::Signed(local_keypair.clone()), config)
.map_err(|e| Gossipsub(e.to_string()))?;
let gossipsub = gossipsub::Behaviour::new(MessageAuthenticity::Anonymous, config)
.map_err(|e| Gossipsub(e.to_string()))?;

let discovery = {
// Build and start the discovery sub-behaviour
Expand Down