tuweni / org.apache.tuweni.devp2p / PeerRoutingTable / add

add

abstract fun add(node: Peer): Peer? (source)

Add a node to the table.

Parameters

node - the node to add

Return
null if the node was successfully added to the table (or already in the table). Otherwise, a node will be returned that is a suitable candidate for eviction, and the provided node will be stored in the replacements list.