les
Module Contents
alltypes
Module Contents
class
LESSubprotocol
:
SubProtocol
Module Contents
LESSubprotocol
(
networkId
:
Int
,
serveHeaders
:
Boolean
,
serveChainSince
:
UInt256
,
serveStateSince
:
UInt256
,
flowControlBufferLimit
:
UInt256
,
flowControlMaximumRequestCostTable
:
UInt256
,
flowControlMinimumRateOfRecharge
:
UInt256
,
repo
:
BlockchainRepository
)
fun
createHandler
(
service
:
RLPxService
)
:
SubProtocolHandler
fun
id
(
)
:
SubProtocolIdentifier
fun
supports
(
subProtocolIdentifier
:
SubProtocolIdentifier
)
:
Boolean
fun
versionRange
(
version
:
Int
)
:
Int
interface
LightClient
Module Contents
abstract
fun
getBlockBodies
(
vararg
blockHashes
:
Hash
)
:
List
<
BlockBody
>
abstract
fun
getBlockHeaders
(
blockNumberOrHash
:
Bytes32
,
maxHeaders
:
Int
=
10
,
skip
:
Int
=
0
,
reverse
:
Boolean
=
false
)
:
List
<
BlockHeader
>
abstract
fun
getReceipts
(
vararg
blockHashes
:
Hash
)
:
List
<
List
<
TransactionReceipt
>
>
package
org.apache.tuweni.les
Module Contents
class
LESSubprotocol
:
SubProtocol
Module Contents
LESSubprotocol
(
networkId
:
Int
,
serveHeaders
:
Boolean
,
serveChainSince
:
UInt256
,
serveStateSince
:
UInt256
,
flowControlBufferLimit
:
UInt256
,
flowControlMaximumRequestCostTable
:
UInt256
,
flowControlMinimumRateOfRecharge
:
UInt256
,
repo
:
BlockchainRepository
)
fun
createHandler
(
service
:
RLPxService
)
:
SubProtocolHandler
fun
id
(
)
:
SubProtocolIdentifier
fun
supports
(
subProtocolIdentifier
:
SubProtocolIdentifier
)
:
Boolean
fun
versionRange
(
version
:
Int
)
:
Int
interface
LightClient
Module Contents
abstract
fun
getBlockBodies
(
vararg
blockHashes
:
Hash
)
:
List
<
BlockBody
>
abstract
fun
getBlockHeaders
(
blockNumberOrHash
:
Bytes32
,
maxHeaders
:
Int
=
10
,
skip
:
Int
=
0
,
reverse
:
Boolean
=
false
)
:
List
<
BlockHeader
>
abstract
fun
getReceipts
(
vararg
blockHashes
:
Hash
)
:
List
<
List
<
TransactionReceipt
>
>