def _num_needed_peers(self) -> int:
    target = self.target_outbound_count
    outgoing = len(self.server.get_full_node_outgoing_connections())
    return max(0, (target - outgoing))
def _num_needed_peers(self) -> int:
    target = self.target_outbound_count
    outgoing = len(self.server.get_full_node_outgoing_connections())
    return max(0, (target - outgoing))