iroh icon indicating copy to clipboard operation
iroh copied to clipboard

`PeerMap` invariants don't hold

Open Frando opened this issue 2 years ago • 0 comments

This debug_assert in Endpoint::receive_ip triggers reliably for me on tests with many nodes:

 // the peer map maintains consistency
        let Some(state) = endpoint.direct_addr_state.get_mut(&ip_port) else {
            debug_assert!(false, "peer map inconsistency by_ip_port <-> direct addr");
            return None;
        };

https://github.com/n0-computer/iroh/blob/main/iroh-net/src/magicsock/endpoint.rs#L1417

Frando avatar Oct 23 '23 14:10 Frando