Skip to content

Interaction and ordering of Kademlia, Identfiy and AutoNAT behaviors #3906

Closed Answered by thomaseizinger
b-zee asked this question in Q&A
Discussion options

You must be logged in to vote

Kademlia will only ever add a node to the routing table if it successfully dialed that node:

// The remote's address can only be put into the routing table,
// and thus shared with other nodes, if the local node is the dialer,
// since the remote address on an inbound connection may be specific
// to that connection (e.g. typically the TCP port numbers).
let address = match endpoint {
ConnectedPoint::Dialer { address, .. } => Some(address),
ConnectedPoint::Listener { .. } => None,
};

The addresses we receive from identify will be use to attempt to connect to a node…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@b-zee
Comment options

@thomaseizinger
Comment options

@b-zee
Comment options

@mxinden
Comment options

mxinden May 11, 2023
Collaborator

@thomaseizinger
Comment options

Answer selected by b-zee
Comment options

You must be logged in to vote
4 replies
@thomaseizinger
Comment options

@b-zee
Comment options

@thomaseizinger
Comment options

@b-zee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants