From 40073ebf9570464a69a928eba9c51b4dad6e699a Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 4 Nov 2026 05:14:12 +0100 Subject: announcements answered when lacking A neighbour now answers an announcement only if it lacks some of the announced heads. Heads that merely differ are no longer enough, since they do while writes go on. The check reads the document, so it runs off the message consumer, as the pull check already does. --- src/transport/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index e27ce2d..17d6d4c 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -203,8 +203,8 @@ pub(crate) struct Status { /// recipient holds it dormant at once, rather than after `dormant_after` of silence. pub(crate) leaving: bool, /// The sender announces new heads (`swarm::relay`), rather than keeping alive: a - /// STATUS answered only if the recipient's heads differ. Most announcements reach a - /// neighbour that has the changes already, which has nothing to tell. + /// STATUS answered only if the recipient lacks some of the heads. Most announcements + /// reach a neighbour that has the changes already, which has nothing to tell. pub(crate) announcing: bool, /// Whom the sender reaches (`swarm::reach`): the pair keys (`topology::pair_key`) /// of the members it has an active session with that answer, sorted. In keepalive STATUSes and -- cgit v1.3.1