From 0b13e180c4dcd38e3ea8ffeecc9e5ebefa023212 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 05:54:53 +0100 Subject: number handshakes This prevents late hellos from resetting the session. --- src/state/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state/mod.rs') diff --git a/src/state/mod.rs b/src/state/mod.rs index 438ad52..a51339c 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -85,6 +85,8 @@ pub(crate) struct AppState { /// Random per run of this node; our HELLOs carry it and replies must echo it. pub(crate) run_id: transport::RunId, + /// Handshakes this node started in this run, with any peer (`HelloRequest::handshake`). + pub(crate) handshakes: Arc, /// Target number of neighbours (`--neighbours`); up to this many + 1 members the /// swarm is a full mesh. -- cgit v1.3.1