From edade105610aeaf62f899134b011ba46cb169955 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 26 Nov 2014 03:58:55 +0000 Subject: [PATCH] merged fix from RC_1_0 --- src/kademlia/node.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kademlia/node.cpp b/src/kademlia/node.cpp index 7fa904f7e..d23ea1c6e 100644 --- a/src/kademlia/node.cpp +++ b/src/kademlia/node.cpp @@ -489,9 +489,7 @@ void node_impl::send_single_refresh(udp::endpoint const& ep, int bucket if (ptr == 0) return; TORRENT_ASSERT(bucket >= 0); - - // sanity check - TORRENT_ASSERT(bucket <= 50); + TORRENT_ASSERT(bucket <= 159); // generate a random node_id within the given bucket // TODO: 2 it would be nice to have a bias towards node-id prefixes that