From 597b5e6cfba2077b173fb1960feb8272879cca12 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 28 Jun 2016 14:50:25 -0400 Subject: [PATCH] use different constants for now in meshnet mode --- NetDb.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/NetDb.h b/NetDb.h index 59e9b0a8..3bd3dcf7 100644 --- a/NetDb.h +++ b/NetDb.h @@ -27,11 +27,18 @@ namespace i2p namespace data { const int NETDB_MIN_ROUTERS = 90; +#ifdef MESHNET + const int NETDB_FLOODFILL_EXPIRATION_TIMEOUT = 60; // 1 hour, in seconds + const int NETDB_INTRODUCEE_EXPIRATION_TIMEOUT = 65; + const int NETDB_MIN_EXPIRATION_TIMEOUT = 90; // 1.5 hours + const int NETDB_MAX_EXPIRATION_TIMEOUT = 27*60; // 27 hours +#else const int NETDB_FLOODFILL_EXPIRATION_TIMEOUT = 60*60; // 1 hour, in seconds const int NETDB_INTRODUCEE_EXPIRATION_TIMEOUT = 65*60; const int NETDB_MIN_EXPIRATION_TIMEOUT = 90*60; // 1.5 hours const int NETDB_MAX_EXPIRATION_TIMEOUT = 27*60*60; // 27 hours - +#endif + class NetDb { public: