Skip to content

Commit

Permalink
update gossip transmit size
Browse files Browse the repository at this point in the history
  • Loading branch information
erhant committed Aug 12, 2024
1 parent 2995388 commit ca993ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/p2p/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ fn create_gossipsub_behavior(id_keys: Keypair) -> gossipsub::Behaviour {
MessageAuthenticity::Signed(id_keys),
ConfigBuilder::default()
.heartbeat_interval(Duration::from_secs(10))
.max_transmit_size(262144) // 256 KB
.validation_mode(gossipsub::ValidationMode::Strict)
.message_id_fn(message_id_fn)
.build()
Expand Down

0 comments on commit ca993ac

Please sign in to comment.