浏览代码

A bit more auth cleanup in the local node.

Adam Ierymenko 3 年之前
父节点
当前提交
fe0068da52
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      node/Membership.hpp

+ 1 - 3
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