tuweni / org.apache.tuweni.devp2p.v5 / DiscoveryService

DiscoveryService

object DiscoveryService (source)

A creator of discovery service objects.

Functions

open

Creates a new discovery service, generating the node ENR and configuring the UDP connector.

fun open(vertx: Vertx, keyPair: KeyPair, localPort: Int, bindAddress: InetSocketAddress = InetSocketAddress(InetAddress.getLoopbackAddress(), localPort), enrSeq: Long = Instant.now().toEpochMilli(), bootstrapENRList: List<String> = emptyList(), enrStorage: ENRStorage = DefaultENRStorage(), coroutineContext: CoroutineContext = Dispatchers.Default): DiscoveryV5Service