les / org.apache.tuweni.les / LESSubprotocol

LESSubprotocol

class LESSubprotocol : SubProtocol (source)

The LES subprotocol entry point class, to be used in conjunction with RLPxService

This subprotocol is implemented after the specification presented on the * Ethereum wiki.

See Also

org.apache.tuweni.rlpx.RLPxService

Constructors

<init>

LESSubprotocol(networkId: Int, serveHeaders: Boolean, serveChainSince: UInt256, serveStateSince: UInt256, flowControlBufferLimit: UInt256, flowControlMaximumRequestCostTable: UInt256, flowControlMinimumRateOfRecharge: UInt256, repo: BlockchainRepository)

The LES subprotocol entry point class, to be used in conjunction with RLPxService

Functions

createHandler

fun createHandler(service: RLPxService): SubProtocolHandler

id

fun id(): SubProtocolIdentifier

supports

fun supports(subProtocolIdentifier: SubProtocolIdentifier): Boolean

versionRange

fun versionRange(version: Int): Int