exclude DSA floodfills

This commit is contained in:
orignal 2020-11-21 14:27:08 -05:00
parent 2266c3877c
commit 3dfb44de31
2 changed files with 5 additions and 3 deletions

View file

@ -184,7 +184,9 @@ namespace data
bool IsHidden () const { return m_Caps & eHidden; };
bool IsHighBandwidth () const { return m_Caps & RouterInfo::eHighBandwidth; };
bool IsExtraBandwidth () const { return m_Caps & RouterInfo::eExtraBandwidth; };
// floodfill must be reachable and not DSA
bool IsEligibleFloodfill () const { return IsReachable () && GetIdentity ()->GetSigningKeyType () != SIGNING_KEY_TYPE_DSA_SHA1; };
uint8_t GetCaps () const { return m_Caps; };
void SetCaps (uint8_t caps);
void SetCaps (const char * caps);