diff options
| author | tv <tv@krebsco.de> | 2026-10-23 22:53:16 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-23 22:54:16 +0200 |
| commit | d1ea53c3b9c24fc07435b12ae46d8b519ffddba9 (patch) | |
| tree | cfbb563a2a5e46cc636e34afae2fe3d482bc092c /src/transport/mod.rs | |
| parent | 42b2b644815a2b7f29eb078eb515820368121f89 (diff) | |
perform handshake in one round trip
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index d7e7135..d96b059 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -112,6 +112,9 @@ impl ParsedMessage { #[derive(Debug, Clone)] pub struct HelloRequest { + /// The sender's swarm, if it knows it (a new node doesn't yet). A receiver in + /// another swarm doesn't answer. + pub swarm_id: Option<String>, pub epoch: Epoch, /// Proof of the swarm key (`swarm::auth`); empty without one. pub auth: Vec<u8>, |
