From 1aabac3cfcf8cfdfbfa86c60f8e707feb41c5a06 Mon Sep 17 00:00:00 2001 From: subtly Date: Wed, 13 May 2015 10:37:43 +0200 Subject: [PATCH] Increase frequency of node discovery by factor of 8 (random lookup every 7 seconds). --- libp2p/NodeTable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/NodeTable.h b/libp2p/NodeTable.h index 2e10dd891..de139b683 100644 --- a/libp2p/NodeTable.h +++ b/libp2p/NodeTable.h @@ -186,7 +186,7 @@ private: /* todo: replace boost::posix_time; change constants to upper camelcase */ boost::posix_time::milliseconds const c_evictionCheckInterval = boost::posix_time::milliseconds(75); ///< Interval at which eviction timeouts are checked. std::chrono::milliseconds const c_reqTimeout = std::chrono::milliseconds(300); ///< How long to wait for requests (evict, find iterations). - std::chrono::milliseconds const c_bucketRefresh = std::chrono::milliseconds(57600); ///< Refresh interval prevents bucket from becoming stale. [Kademlia] + std::chrono::milliseconds const c_bucketRefresh = std::chrono::milliseconds(7200); ///< Refresh interval prevents bucket from becoming stale. [Kademlia] struct NodeBucket {