tuweni / org.apache.tuweni.devp2p.v5 / DiscoveryV5Service / requestNodes

requestNodes

abstract suspend fun requestNodes(distance: Int = 1, maxSecondsToWait: Long = 10): AsyncResult<Map<EthereumNodeRecord, List<EthereumNodeRecord>>> (source)

Requests nodes from all connected peers.

Parameters

distance - the distance between the node and the peer. Helps pick a Kademlia bucket.

maxSecondsToWait - number of seconds to wait for a response.