kademlia / org.apache.tuweni.kademlia / KademliaRoutingTable / <init>

<init>

KademliaRoutingTable(selfId: ByteArray, k: Int, maxReplacements: Int = k, nodeId: (T) -> ByteArray)

Create a new routing table.

Parameters

selfId - the ID of the local node

k - the size of each bucket (k value)

maxReplacements - the maximum number of replacements to cache in each bucket

nodeId - a function for obtaining the id of a network node

Constructor
Create a new routing table.

Parameters

Author
Chris Leishman - https://cleishm.github.io/