Skip to content

Commit

Permalink
remove roles selection on blacklisting node - PR done (#4687)
Browse files Browse the repository at this point in the history
  • Loading branch information
serinko committed Jul 2, 2024
1 parent 4a25725 commit e65e611
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/node_api_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ def get_node_data(self,mode, node_dict, id_key, args):
routing_history = api_data[f"/status/gateway/{identity}/history"]["history"]
del api_data[f"/status/gateway/{identity}/history"]["history"]
swagger_data = self.get_swagger_data(host,swagger,swagger_data)
if swagger_data["/roles"]["network_requester_enabled"]== True and swagger_data["/roles"]["ip_packet_router_enabled"] == True:
role = "exit-gateway"
if swagger_data:
if swagger_data["/roles"]["network_requester_enabled"] == True and swagger_data["/roles"]["ip_packet_router_enabled"] == True:
role = "exit-gateway"
else:
role = "entry-gateway"
else:
role = "entry-gateway"
role = None
elif mode == "mixnode":
mix_id = str(node_dict["mixnode_details"]["bond_information"]["mix_id"])
for key in endpoints:
Expand Down

0 comments on commit e65e611

Please sign in to comment.