diff --git a/Cargo.toml b/Cargo.toml index 7ed1e05..e6c9069 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ automerge = "0.5.12" ciborium = "0.2.2" gettext-rs = { version = "0.7", features = ["gettext-system"] } gtk = { version = "0.9", package = "gtk4", features = ["gnome_47"] } +iroh-gossip = "0.29.0" p2panda-core = "0.1.0" p2panda-discovery = { version = "0.1.0", features = ["mdns"] } p2panda-net = "0.1.0" diff --git a/src/network.rs b/src/network.rs index fac443e..0068160 100644 --- a/src/network.rs +++ b/src/network.rs @@ -3,6 +3,7 @@ use std::sync::{Arc, RwLock, RwLockWriteGuard}; use anyhow::Result; use async_trait::async_trait; +use iroh_gossip::proto::topic::Config as GossipConfig; use p2panda_core::{Extension, Hash, PrivateKey, PruneFlag, PublicKey}; use p2panda_discovery::mdns::LocalDiscovery; use p2panda_net::{FromNetwork, NetworkBuilder, SyncConfiguration}; @@ -114,6 +115,10 @@ pub fn run() -> Result<( let network = NetworkBuilder::new(network_id.into()) .private_key(private_key.clone()) .discovery(LocalDiscovery::new().expect("local discovery service")) + .gossip(GossipConfig { + max_message_size: 7432774432, + ..Default::default() + }) .sync(sync_config) .build() .await