tuweni / org.apache.tuweni.devp2p / DiscoveryService / lookupAsync

lookupAsync

abstract fun lookupAsync(target: PublicKey): AsyncResult<List<Peer>> (source)

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

Parameters

target - the node-id to search for

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