tuweni / org.apache.tuweni.devp2p / DiscoveryService / lookup

lookup

abstract suspend fun lookup(target: PublicKey): List<Peer> (source)

Attempt to find a specific peer, or peers close to it.

Parameters

target - the node-id to search for

Return
a list of 16 peers, ordered by their distance to the target node-id.