Browse Source

Increase frequency of node discovery by factor of 8 (random lookup every 7 seconds).

cl-refactor
subtly 10 years ago
parent
commit
1aabac3cfc
  1. 2
      libp2p/NodeTable.h

2
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
{

Loading…
Cancel
Save