reset floodfill cap for unknown floodfills

This commit is contained in:
orignal 2023-05-05 18:22:11 -04:00
parent b6de474fda
commit c757b6d020
2 changed files with 16 additions and 6 deletions

View file

@ -224,6 +224,7 @@ namespace data
void UpdateSupportedTransports ();
void UpdateIntroducers (uint64_t ts); // ts in seconds
bool IsFloodfill () const { return m_Caps & Caps::eFloodfill; };
void ResetFlooldFill () { m_Caps &= ~Caps::eFloodfill; };
bool IsECIES () const { return m_RouterIdentity->GetCryptoKeyType () == i2p::data::CRYPTO_KEY_TYPE_ECIES_X25519_AEAD; };
bool IsNTCP2 (bool v4only = true) const;
bool IsNTCP2V6 () const { return m_SupportedTransports & eNTCP2V6; };