From a9fb4e6890bfaef1e25cdceb4eea9c997e3c7cdf Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 5 Nov 2026 03:49:13 +0100 Subject: no swarm ID in sync --- docs/peers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/peers.md') diff --git a/docs/peers.md b/docs/peers.md index 0f7635e..e86e530 100644 --- a/docs/peers.md +++ b/docs/peers.md @@ -78,7 +78,8 @@ sequenceDiagram ``` One round trip makes both sides members of each other: the HELLO proves the sender's -key, the reply the swarm ID and the responder's key. A new handshake resets the sync +key, the reply the swarm ID and the responder's key. Sync messages don't repeat the +swarm ID: the handshake bound the peer to it. A new handshake resets the sync session on both sides; HELLOs carry the handshake's number, so a resent HELLO (its reply was lost) or a late copy is answered without resetting again. A node that doesn't know its swarm yet (it is joining itself) doesn't answer a HELLO; the sender retries. -- cgit v1.3.1