summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-12 22:25:40 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-03-12 22:25:40 +0100
commit11b80a8098a5a83041fc03accd98a8d52f2e1f30 (patch)
tree66e485c335b07e795fa144493d1baf95b6b59e6b
parente99cd96fd96ae03da1f73c0355eea77cf44c8375 (diff)
-remove broken path trunction logic
-rw-r--r--src/dht/gnunet-service-dht_neighbours.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/dht/gnunet-service-dht_neighbours.c b/src/dht/gnunet-service-dht_neighbours.c
index 94513983e..9aea34354 100644
--- a/src/dht/gnunet-service-dht_neighbours.c
+++ b/src/dht/gnunet-service-dht_neighbours.c
@@ -2443,23 +2443,6 @@ handle_dht_p2p_result (void *cls,
/* if we got a HELLO, consider it for our own routing table */
hello_check (&bd);
- /* First, check if 'peer' is already on the path, and if
- so, truncate it instead of expanding. */
- for (unsigned int i = 0; i < get_path_length; i++)
- if (0 == GNUNET_memcmp (&get_path[i].pred,
- &peer->id))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Truncating path at %u/%u\n",
- i,
- get_path_length);
- GNUNET_break (process_reply_with_path (&bd,
- &prm->key,
- i,
- get_path));
- return;
- }
-
/* Need to append 'peer' to 'get_path' (normal case) */
{
struct GNUNET_DHT_PathElement xget_path[get_path_length + 1];