kad: consume `FromSwarm::NewExternalAddrOfPeer`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.6k
- Forks
- 1.3k
- Avg merge
- 8h 47m
- Merged PRs (30d)
- 19
Description
Counter-part to https://github.com/libp2p/rust-libp2p/issues/5103. We should consume this event and extend our routing table. https://github.com/libp2p/rust-libp2p/blob/bee8199c0db79e2b621e3a076ed09ece65337553/swarm/src/behaviour.rs#L454-L455
Probably here: https://github.com/libp2p/rust-libp2p/blob/bee8199c0db79e2b621e3a076ed09ece65337553/protocols/kad/src/behaviour.rs#L2614-L2634
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read swarm/src/behaviour.rs at the referenced FromSwarm::NewExternalAddrOfPeer definition, then inspect protocols/kad/src/behaviour.rs around lines 2614-2634. Trace how Kademlia currently handles related swarm events and extend the routing table when this event is consumed; done means the new external peer address is incorporated there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100