The transport manager propagates the InnerTransportEvent::DialFailure
event together with the multiaddress to all installed protocols. In older versions of litep2p, the address was not propagated. However, we needed to have an eventually consistent address store in kademlia for optimization and consistency purposes.
|
match context.tx.try_send(InnerTransportEvent::DialFailure { |
|
peer, |
|
addresses: vec![address.clone()], |
We can improve the propagation of messages by propagating the addresses only to the kademlia handler. The other protocols could leave without knowing which address has failed (there was no change made that takes the address into account for other protocols).