pub fn cross_connection_winner(
our_node_addr: &NodeAddr,
their_node_addr: &NodeAddr,
this_is_outbound: bool,
) -> boolExpand description
Determine winner of cross-connection tie-breaker.
Rule: The node with the smaller node_addr prefers its OUTBOUND connection. This is deterministic and symmetric: both nodes will reach the same conclusion.
§Arguments
our_node_addr- Our node’s IDtheir_node_addr- The peer’s node IDthis_is_outbound- Whether the connection being evaluated is our outbound
§Returns
true if this connection should win (survive), false if it should close.