Skip to content

Commit

Permalink
Merge pull request #1815 from subspace/add-kademlia-client-mode
Browse files Browse the repository at this point in the history
Set Client Kademlia mode for nodes.
  • Loading branch information
nazar-pc authored Aug 15, 2023
2 parents a3d3706 + 9d8380f commit 34bf29d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/subspace-service/src/dsn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::fs;
use std::path::PathBuf;
use std::sync::Arc;
use subspace_core_primitives::{SegmentHeader, SegmentIndex};
use subspace_networking::libp2p::kad::Mode as KademliaMode;
use subspace_networking::libp2p::{identity, Multiaddr};
use subspace_networking::utils::strip_peer_id;
use subspace_networking::{
Expand Down Expand Up @@ -178,6 +179,7 @@ where
general_connected_peers_handler: Some(Arc::new(|_| true)),
bootstrap_addresses: dsn_config.bootstrap_nodes,
external_addresses: dsn_config.external_addresses,
kademlia_mode: Some(KademliaMode::Client),

..default_networking_config
};
Expand Down

0 comments on commit 34bf29d

Please sign in to comment.