aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_nse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_nse.c')
-rw-r--r--src/dht/gnunet-service-dht_nse.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_nse.c b/src/dht/gnunet-service-dht_nse.c
index 7779989..11c02e1 100644
--- a/src/dht/gnunet-service-dht_nse.c
+++ b/src/dht/gnunet-service-dht_nse.c
@@ -81,6 +81,21 @@ GDS_NSE_get ()
void
GDS_NSE_init ()
{
+ unsigned long long hops;
+
+ if ( (GNUNET_YES ==
+ GNUNET_CONFIGURATION_have_value (GDS_cfg,
+ "dht",
+ "FORCE_NSE")) &&
+ (GNUNET_OK ==
+ GNUNET_CONFIGURATION_get_value_number (GDS_cfg,
+ "dht",
+ "FORCE_NSE",
+ &hops)) )
+ {
+ log_of_network_size_estimate = (double) hops;
+ return;
+ }
nse = GNUNET_NSE_connect (GDS_cfg, &update_network_size_estimate, NULL);
}