diff options
| author | tv <tv@krebsco.de> | 2026-10-23 22:56:30 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-23 23:08:00 +0200 |
| commit | 487690bb0fb63c5dcc80d009632bd9430d946af1 (patch) | |
| tree | fad60f7a09d681e6d4e2641adb04c54e601bbd75 /src/swarm/pair.rs | |
| parent | d1ea53c3b9c24fc07435b12ae46d8b519ffddba9 (diff) | |
both sides may open sync after reset
Ready nodes will leave the first message to the pear that isn't ready.
Hello and hello reply now carry ready, so readiness is known from the
very first contact, before any sync. Together with the sync messages
and keepalives, reports_ready is always current.
After epoch switch, pings go to everyone except ready members already
on the new epoch, these learn from the lagging peer's opening.
Diffstat (limited to 'src/swarm/pair.rs')
| -rw-r--r-- | src/swarm/pair.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/swarm/pair.rs b/src/swarm/pair.rs index 7200a91..c1a196b 100644 --- a/src/swarm/pair.rs +++ b/src/swarm/pair.rs @@ -1,5 +1,5 @@ -//! Which side of a pair of nodes leads, for duties only one side needs to do (opening -//! the sync after a reset, sending keepalive PINGs). +//! Which side of a pair of nodes leads, for duties only one side needs to do (sending +//! keepalive PINGs). //! //! Both sides decide on their own, from the two keys alone, and agree. The leader is //! chosen per pair by one bit of a hash of both keys, not by comparing the keys: a |
