Skip to main content

should_offer

Function should_offer 

Source
pub fn should_offer(me: PeerId, other: PeerId) -> bool
Expand description

Perfect-negotiation tiebreak: the lower peer id creates the offer. This avoids “glare” — both sides offering at once — without any central coordinator, so two peers introduced by the rendezvous deterministically agree who initiates.