tuweni / org.apache.tuweni.stratum.server / Stratum1Protocol / <init>

<init>

Stratum1Protocol(extranonce: String, jobIdSupplier: () -> String = { val timeValue: Bytes = Bytes.minimalBytes(Instant.now().toEpochMilli()) timeValue.slice(timeValue.size() - 4, 4).toShortHexString() }, subscriptionIdCreator: () -> String = { createSubscriptionID() }, submitCallback: (PoWSolution) -> Boolean, seedSupplier: () -> Bytes32)

Implementation of the stratum+tcp protocol.

This protocol allows miners to submit EthHash solutions over a persistent TCP connection.