Harden live Iroh integration paths

This commit is contained in:
Eric Wendland 2026-05-29 15:27:45 +02:00
commit 0fdf5d0be7
6 changed files with 256 additions and 144 deletions

View file

@ -310,10 +310,8 @@ fn peer_ping_uses_daemon_owned_iroh_endpoint() {
let right_card: geth_discovery::PeerCard =
serde_json::from_str(&right_card_json).expect("decode right peer card");
assert!(
right_card.endpoints[0]
.direct_addresses
.iter()
.any(|addr| addr.contains("127.0.0.1") || addr.contains("[::1]"))
!right_card.endpoints[0].direct_addresses.is_empty(),
"exported peer card should include at least one direct Iroh address"
);
let ping = run_geth(