tuweni / org.apache.tuweni.devp2p / DevP2PPeerRoutingTable / add

add

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

Overrides PeerRoutingTable.add

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.