mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
testnet changes
This commit is contained in:
parent
ff757ddc88
commit
c72d9695da
10
NetDb.cpp
10
NetDb.cpp
@ -124,9 +124,9 @@ namespace data
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if we're in hidden mode don't publish or explore
|
// if we're in hidden mode don't publish or explore
|
||||||
if (m_HiddenMode) continue;
|
// if (m_HiddenMode) continue;
|
||||||
|
|
||||||
if (ts - lastPublish >= 2400) // publish every 40 minutes
|
if (ts - lastPublish >= NETDB_PUBLISH_INTERVAL) // publish
|
||||||
{
|
{
|
||||||
Publish ();
|
Publish ();
|
||||||
lastPublish = ts;
|
lastPublish = ts;
|
||||||
@ -183,10 +183,8 @@ namespace data
|
|||||||
// TODO: check if floodfill has been changed
|
// TODO: check if floodfill has been changed
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
LogPrint (eLogDebug, "NetDb: RouterInfo is older: ", ident.ToBase64());
|
LogPrint (eLogDebug, "NetDb: RouterInfo is older: ", ident.ToBase64());
|
||||||
updated = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
8
NetDb.h
8
NetDb.h
@ -31,7 +31,13 @@ namespace data
|
|||||||
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
|
||||||
|
|
||||||
|
#ifdef MESHNET
|
||||||
|
const int NETDB_PUBLISH_INTERVAL = 60;
|
||||||
|
#else
|
||||||
|
const int NETDB_PUBLISH_INTERVAL = 60*40;
|
||||||
|
#endif
|
||||||
|
|
||||||
class NetDb
|
class NetDb
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user