tuweni / org.apache.tuweni.stratum.server / StratumServer

StratumServer

class StratumServer (source)

Server capable of handling connections from Stratum clients, authenticate and serve content for them.

Constructors

<init>

Server capable of handling connections from Stratum clients, authenticate and serve content for them.

StratumServer(vertx: Vertx, port: Int, networkInterface: String, sslOptions: KeyCertOptions?, extranonce: String = "", submitCallback: (PoWSolution) -> Boolean, seedSupplier: () -> Bytes32, hashrateCallback: (Bytes, Long) -> Boolean)

Properties

networkInterface

val networkInterface: String

vertx

val vertx: Vertx

Functions

port

fun port(): Int

start

suspend fun start(): Unit

stop

suspend fun stop(): Unit

Companion Object Properties

logger

val logger: Logger!