tuweni / org.apache.tuweni.devp2p.eth / EthRequestsManager / requestBlock

requestBlock

abstract fun requestBlock(blockHash: Hash, connection: WireConnection = connectionSelectionStrategy().selectConnection()): AsyncResult<Block> (source)

Requests a block from block hash

Parameters

blockHash - the hash of the block

connection - the connection to use

Return
a handle to the completion of the operation