mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-24 12:44:02 +00:00
Tweaked some values in DHT to decrease the discovery time mainly
for the auto tests.
This commit is contained in:
1 file changed
+5
-2
+5
-2
@@ -39,10 +39,10 @@
|
||||
#define PING_NUM_MAX 512
|
||||
|
||||
/* Maximum newly announced nodes to ping per TIME_TO_PING seconds. */
|
||||
#define MAX_TO_PING 8
|
||||
#define MAX_TO_PING 16
|
||||
|
||||
/* Ping newly announced nodes to ping per TIME_TO_PING seconds*/
|
||||
#define TIME_TO_PING 8
|
||||
#define TIME_TO_PING 4
|
||||
|
||||
|
||||
struct PING {
|
||||
@@ -301,6 +301,9 @@ void do_to_ping(PING *ping)
|
||||
if (!is_timeout(ping->last_to_ping, TIME_TO_PING))
|
||||
return;
|
||||
|
||||
if (!ip_isset(&ping->to_ping[0].ip_port.ip))
|
||||
return;
|
||||
|
||||
ping->last_to_ping = unix_time();
|
||||
uint32_t i;
|
||||
|
||||
|
||||
Reference in new issue
Block a user