Skip to content

Kademlia full bucket node eviction logic #5970

Discussion options

You must be logged in to vote

/// Inserts a new node into the bucket with the given status.
///
/// The status of the node to insert determines the result as follows:
///
/// * `NodeStatus::Connected`: If the bucket is full and either all nodes are connected or
/// there is already a pending node, insertion fails with `InsertResult::Full`. If the
/// bucket is full but at least one node is disconnected and there is no pending node, the
/// new node is inserted as pending, yielding `InsertResult::Pending`. Otherwise the bucket
/// has free slots and the new node is added to the end of …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@guillaumemichel
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jxs
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