From 5ae67bc9893b5c24e93d23c8987157f6aef53a50 Mon Sep 17 00:00:00 2001 From: cjdelisle Date: Thu, 26 Jan 2012 03:50:07 -0500 Subject: [PATCH] Revert "Make router learn about better routes faster." oops too soon This reverts commit 539cdfc7b2271935feef0d29491d83a6a976d040. --- dht/dhtcore/RouterModule.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dht/dhtcore/RouterModule.c b/dht/dhtcore/RouterModule.c index 3927aead8..fea250761 100644 --- a/dht/dhtcore/RouterModule.c +++ b/dht/dhtcore/RouterModule.c @@ -425,11 +425,7 @@ static void searchStep(struct SearchCallbackContext* scc) // Get the node from the nodestore because there might be a much better path to the same node. struct Node* n = NodeStore_getBest(nextSearchNode->address, scc->routerModule->nodeStore); if (n && !memcmp(n->address.ip6.bytes, nextSearchNode->address->ip6.bytes, 16)) { - uint64_t n = Endian_bigEndianToHost64(n->address.networkAddress_be); - uint64_t nsn = Endian_bigEndianToHost64(nextSearchNode->address->networkAddress_be); - if (n < nsn) { - nextSearchNode->address = &n->address; - } + nextSearchNode->address = &n->address; } sendRequest(nextSearchNode->address,