Browse Source

testnet changes

pull/557/head
Jeff Becker 9 years ago
parent
commit
c72d9695da
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 8
      NetDb.cpp
  2. 6
      NetDb.h

8
NetDb.cpp

@ -124,9 +124,9 @@ namespace data @@ -124,9 +124,9 @@ namespace data
}
// 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 ();
lastPublish = ts;
@ -183,10 +183,8 @@ namespace data @@ -183,10 +183,8 @@ namespace data
// TODO: check if floodfill has been changed
}
else
{
LogPrint (eLogDebug, "NetDb: RouterInfo is older: ", ident.ToBase64());
updated = false;
}
}
else
{

6
NetDb.h

@ -32,6 +32,12 @@ namespace data @@ -32,6 +32,12 @@ namespace data
const int NETDB_MIN_EXPIRATION_TIMEOUT = 90*60; // 1.5 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
{
public:

Loading…
Cancel
Save