A bit more auth cleanup in the local node.

This commit is contained in:
Adam Ierymenko 2022-04-19 16:34:46 -04:00
parent cd70fefc5e
commit fe0068da52
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -90,9 +90,7 @@ public:
*/ */
inline bool isAllowedOnNetwork(const NetworkConfig &thisNodeNetworkConfig, const Identity &otherNodeIdentity) const inline bool isAllowedOnNetwork(const NetworkConfig &thisNodeNetworkConfig, const Identity &otherNodeIdentity) const
{ {
if (thisNodeNetworkConfig.isPublic()) return true; return (thisNodeNetworkConfig.isPublic() || (((_com.timestamp() > _comRevocationThreshold) && (thisNodeNetworkConfig.com.agreesWith(_com, otherNodeIdentity)))));
if (_com.timestamp() <= _comRevocationThreshold) return false;
return thisNodeNetworkConfig.com.agreesWith(_com, otherNodeIdentity);
} }
inline bool recentlyAssociated(const int64_t now) const inline bool recentlyAssociated(const int64_t now) const