Type Alias sc_network_common::sync::message::BlockRequest

source ·
pub type BlockRequest<B> = BlockRequest<<B as BlockT>::Hash, <<B as BlockT>::Header as HeaderT>::Number>;
Expand description

Type alias for using the block request type using block type parameters.

Aliased Type§

struct BlockRequest<B> {
    pub id: u64,
    pub fields: BlockAttributes,
    pub from: FromBlock<<B as Block>::Hash, <<B as Block>::Header as Header>::Number>,
    pub direction: Direction,
    pub max: Option<u32>,
}

Fields§

§id: u64

Unique request id.

§fields: BlockAttributes

Bits of block data to request.

§from: FromBlock<<B as Block>::Hash, <<B as Block>::Header as Header>::Number>

Start from this block.

§direction: Direction

Sequence direction.

§max: Option<u32>

Maximum number of blocks to return. An implementation defined maximum is used when unspecified.