From 00260555bd40eef75762a1802d0fdac66ef22e19 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 7 Feb 2020 15:28:13 -0500 Subject: [PATCH] logic simplification --- llarp/dht/messages/findintro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llarp/dht/messages/findintro.cpp b/llarp/dht/messages/findintro.cpp index b250c7cc5..e3a9a7ea3 100644 --- a/llarp/dht/messages/findintro.cpp +++ b/llarp/dht/messages/findintro.cpp @@ -121,7 +121,7 @@ namespace llarp Key_t peer = Key_t(rc.pubkey); - if((us ^ location) < (peer ^ location) || peer == us) + if((us ^ location) <= (peer ^ location)) { // ask second closest as we are recursive if(not dht.Nodes()->FindCloseExcluding(location, peer, exclude))