diff --git a/node/Membership.hpp b/node/Membership.hpp index aecbaa89..63f0b7e2 100644 --- a/node/Membership.hpp +++ b/node/Membership.hpp @@ -90,9 +90,7 @@ public: */ inline bool isAllowedOnNetwork(const NetworkConfig &thisNodeNetworkConfig, const Identity &otherNodeIdentity) const { - if (thisNodeNetworkConfig.isPublic()) return true; - if (_com.timestamp() <= _comRevocationThreshold) return false; - return thisNodeNetworkConfig.com.agreesWith(_com, otherNodeIdentity); + return (thisNodeNetworkConfig.isPublic() || (((_com.timestamp() > _comRevocationThreshold) && (thisNodeNetworkConfig.com.agreesWith(_com, otherNodeIdentity))))); } inline bool recentlyAssociated(const int64_t now) const