mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 08:17:38 +01:00
use different constants for now in meshnet mode
This commit is contained in:
parent
2cd056cfb3
commit
597b5e6cfb
1 changed files with 8 additions and 1 deletions
7
NetDb.h
7
NetDb.h
|
@ -27,10 +27,17 @@ namespace i2p
|
||||||
namespace data
|
namespace data
|
||||||
{
|
{
|
||||||
const int NETDB_MIN_ROUTERS = 90;
|
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_FLOODFILL_EXPIRATION_TIMEOUT = 60*60; // 1 hour, in seconds
|
||||||
const int NETDB_INTRODUCEE_EXPIRATION_TIMEOUT = 65*60;
|
const int NETDB_INTRODUCEE_EXPIRATION_TIMEOUT = 65*60;
|
||||||
const int NETDB_MIN_EXPIRATION_TIMEOUT = 90*60; // 1.5 hours
|
const int NETDB_MIN_EXPIRATION_TIMEOUT = 90*60; // 1.5 hours
|
||||||
const int NETDB_MAX_EXPIRATION_TIMEOUT = 27*60*60; // 27 hours
|
const int NETDB_MAX_EXPIRATION_TIMEOUT = 27*60*60; // 27 hours
|
||||||
|
#endif
|
||||||
|
|
||||||
class NetDb
|
class NetDb
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue