def add_node_hook(node_ip, node_port, node_type, timeout=5): print("Failure 1") global test_no_1_success test_no_1_success = 0 s = Sock() s.connected = 1 return s
def inbound_con_by_ip(ip): print("Failure 2") global test_no_1_success test_no_1_success = 0 s = Sock() s.connected = 1 return s
def inbound_con_by_ip(ip): s = Sock() s.connected = 1 return s
def add_node_hook(node_ip, node_port, node_type, timeout=5): s = Sock() s.connected = 1 return s