From 11dd3eda0526030bd8f15167a10a2168accb8d93 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 21 Nov 2026 23:11:02 +0000 Subject: roots: a joiner shakes hands again with a seed that says it's ready A seed that named no root, joining itself, names it once ready, but only from this build on: a 0.0.1 seed never shakes hands again, and its joiner waited for ever. scripts/wire-check hit that, d of this tree joining through c of 0.0.1, their handshake 6 ms before c was ready. So the joiner does its half too: where a seed it still waits for named none, a STATUS saying the seed became ready has it shake hands with the seed again (seed_ready), which then names its root. --- src/swarm/peer/keepalive.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/swarm/peer') diff --git a/src/swarm/peer/keepalive.rs b/src/swarm/peer/keepalive.rs index b4daf53..51ff14a 100644 --- a/src/swarm/peer/keepalive.rs +++ b/src/swarm/peer/keepalive.rs @@ -295,6 +295,8 @@ pub(super) async fn note_status(state: &AppState, peer: &str, remote: &transport // We may have left the opening to it while it wasn't ready, and nothing else // would make us look again. state.request_sync(peer); + // A seed that named no root, joining itself then, names it now. + crate::swarm::roots::seed_ready(state, peer); } } crate::swarm::source::reported(state, peer, remote.ready, Some(remote.syncs_with_you)); -- cgit v1.3.1