From 9d8380f257add9a551f70f95c2e2a32ab7f8cf7a Mon Sep 17 00:00:00 2001 From: Shamil Gadelshin Date: Tue, 15 Aug 2023 14:53:57 +0700 Subject: [PATCH] node: Set Kademlia Client mode. --- crates/subspace-service/src/dsn.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/subspace-service/src/dsn.rs b/crates/subspace-service/src/dsn.rs index fff539dfce..c19375e4ba 100644 --- a/crates/subspace-service/src/dsn.rs +++ b/crates/subspace-service/src/dsn.rs @@ -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::{ @@ -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 };