diff options
| author | tv <tv@krebsco.de> | 2026-10-26 05:54:53 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 05:54:53 +0100 |
| commit | 13abdec6dd79529143acefeaf9f8f4ac394c2db5 (patch) | |
| tree | 895419552afd3323636d334a6684d8423361e7ad /src/state/mod.rs | |
| parent | 355f6db0b15e623a18626ac90c8baed10f23bef5 (diff) | |
number handshakes
This prevents late hellos from resetting the session.
Diffstat (limited to 'src/state/mod.rs')
| -rw-r--r-- | src/state/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<std::sync::atomic::AtomicU32>, /// Target number of neighbours (`--neighbours`); up to this many + 1 members the /// swarm is a full mesh. |
