Use file db for dht comms
@@ -31,7 +31,7 @@ use tari_base_node::{run_base_node, BaseNodeConfig, MetricsConfig};
use tari_base_node_grpc_client::BaseNodeGrpcClient;
use tari_common::configuration::CommonConfig;
use tari_comms::{multiaddr::Multiaddr, peer_manager::PeerFeatures, NodeIdentity};
-use tari_comms_dht::DhtConfig;
+use tari_comms_dht::{DbConnectionUrl, DhtConfig};
use tari_p2p::{auto_update::AutoUpdateConfig, Network, PeerSeedsConfig, TransportType};
use tari_shutdown::Shutdown;
use tempfile::tempdir;
@@ -150,6 +150,7 @@ pub async fn spawn_base_node(
Some(base_node_config.base_node.p2p.transport.tcp.listener_address.clone());
base_node_config.base_node.p2p.datastore_path = temp_dir.path().to_path_buf();
base_node_config.base_node.p2p.dht = DhtConfig::default_local_test();
+ base_node_config.base_node.p2p.dht.database_url = DbConnectionUrl::File(temp_dir.path().join("dht.sqlit"));
base_node_config.base_node.p2p.allow_test_addresses = true;
base_node_config.base_node.storage.pruning_horizon = pruning_horizon.unwrap_or_default();
