From fe0068da528ea680a85cb666d2a90c0952d2d9c7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 19 Apr 2022 16:34:46 -0400 Subject: [PATCH] A bit more auth cleanup in the local node. --- node/Membership.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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