Browse Source

set minimal version for floodfill to 0.9.38

pull/1677/head
orignal 3 years ago
parent
commit
db9223b0d5
  1. 2
      libi2pd/NetDb.hpp
  2. 2
      libi2pd/RouterInfo.cpp

2
libi2pd/NetDb.hpp

@ -44,7 +44,7 @@ namespace data @@ -44,7 +44,7 @@ namespace data
const int NETDB_PUBLISH_CONFIRMATION_TIMEOUT = 5; // in seconds
const int NETDB_MAX_PUBLISH_EXCLUDED_FLOODFILLS = 15;
const int NETDB_MIN_HIGHBANDWIDTH_VERSION = MAKE_VERSION_NUMBER(0, 9, 36); // 0.9.36
const int NETDB_MIN_FLOODFILL_VERSION = MAKE_VERSION_NUMBER(0, 9, 28); // 0.9.28
const int NETDB_MIN_FLOODFILL_VERSION = MAKE_VERSION_NUMBER(0, 9, 38); // 0.9.38
/** function for visiting a leaseset stored in a floodfill */
typedef std::function<void(const IdentHash, std::shared_ptr<LeaseSet>)> LeaseSetVisitor;

2
libi2pd/RouterInfo.cpp

@ -1164,7 +1164,7 @@ namespace data @@ -1164,7 +1164,7 @@ namespace data
bool RouterInfo::IsEligibleFloodfill () const
{
// floodfill must be reachable by ipv4, >= 0.9.28 and not DSA
// floodfill must be reachable by ipv4, >= 0.9.38 and not DSA
return IsReachableBy (eNTCP2V4 | eSSUV4) && m_Version >= NETDB_MIN_FLOODFILL_VERSION &&
GetIdentity ()->GetSigningKeyType () != SIGNING_KEY_TYPE_DSA_SHA1;
}

Loading…
Cancel
Save