minimal version for floodfill 0.9.28

This commit is contained in:
orignal 2020-11-23 12:49:18 -05:00
parent 86e3b977e4
commit 9301e39af7
3 changed files with 9 additions and 2 deletions

View file

@ -948,5 +948,12 @@ namespace data
if (encryptor)
encryptor->Encrypt (data, encrypted, ctx, true);
}
bool RouterInfo::IsEligibleFloodfill () const
{
// floodfill must be reachable, >= 0.9.28 and not DSA
return IsReachable () && m_Version >= NETDB_MIN_FLOODFILL_VERSION &&
GetIdentity ()->GetSigningKeyType () != SIGNING_KEY_TYPE_DSA_SHA1;
}
}
}