aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 01:34:15 +0100
committertv <tv@krebsco.de>2026-10-27 01:34:15 +0100
commit027a0920b81e7ee3e0f3eb4f0b3cbbb559133252 (patch)
treeeb3f0c51ad6594cb1515d28fcec839cdaf69156e /src/swarm
parent3b2773500379d14c7611eacc62c4709c1b406fd3 (diff)
admit nodeId and addresses in the API
Diffstat (limited to 'src/swarm')
-rw-r--r--src/swarm/peer/handshake.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/swarm/peer/handshake.rs b/src/swarm/peer/handshake.rs
index 4a7f451..1183db1 100644
--- a/src/swarm/peer/handshake.rs
+++ b/src/swarm/peer/handshake.rs
@@ -160,7 +160,14 @@ async fn transmit_hello(state: &AppState, peer: &str) -> Result<()> {
}
}
- result.context("Sending HELLO")
+ match result {
+ // The first HELLO to a peer known only from hints: expected, and retried.
+ Err(error) if transport::identity::is_not_proven(&error) => {
+ debug!(peer = %peer, "HELLO waits until the peer proves where it is; will retry");
+ Ok(())
+ }
+ result => result.context("Sending HELLO"),
+ }
}
pub(super) async fn ensure_handshake(state: &AppState, peer: &str) {