fun requestBlockHeaders(blockHash: Hash, maxHeaders: Long, skip: Long, reverse: Boolean, connection: WireConnection): AsyncResult<List<BlockHeader>>
(source)
Requests block headers
blockHash
- the hash of the block
maxHeaders
- the max number of headers to provide
skip
- the headers to skip in between each header provided
reverse
- whether to provide headers in forward or backwards order
connection
- the connection to use
Return
a handle to the completion of the operation
fun requestBlockHeaders(blockNumber: Long, maxHeaders: Long, skip: Long, reverse: Boolean, connection: WireConnection): AsyncResult<List<BlockHeader>>
(source)
Requests block headers
blockNumber
- the number of the block
maxHeaders
- the max number of headers to provide
skip
- the headers to skip in between each header provided
reverse
- whether to provide headers in forward or backwards order
connection
- the connection to use
Return
a handle to the completion of the operation
fun requestBlockHeaders(blockHashes: List<Hash>, connection: WireConnection): AsyncResult<List<BlockHeader>>
(source)
Requests block headers
blockHashes
- the block hashes
connection
- the connection to use
Return
a handle to the completion of the operation