tuweni / org.apache.tuweni.devp2p / Scraper / <init>

<init>

Scraper(coroutineContext: CoroutineContext = Executors.newFixedThreadPool(100).asCoroutineDispatcher(), vertx: Vertx = Vertx.vertx(), initialURIs: List<URI>, bindAddress: SocketAddress, repository: PeerRepository, listeners: List<(Peer) -> Unit>? = null, waitSecondsBetweenScrapes: Long = 30)

Discovery scraper that will continue asking peers for peers, and iterate over them, until told to stop.

The scraper sends events of discoveries to listeners.