Kagome
Polkadot Runtime Engine in C++17
kagome::network::BlocksRequest Struct Reference

#include <blocks_request.hpp>

Collaboration diagram for kagome::network::BlocksRequest:

Public Types

using Fingerprint = size_t
 

Public Member Functions

bool attributeIsSet (const BlockAttribute &attribute) const
 
Fingerprint fingerprint () const
 

Public Attributes

BlockAttributes fields {}
 bits, showing, which parts of BlockData to return More...
 
primitives::BlockId from {}
 start from this block More...
 
Direction direction {}
 sequence direction More...
 
std::optional< uint32_t > max {}
 

Static Public Attributes

static constexpr BlockAttributes kBasicAttributes
 includes HEADER, BODY and JUSTIFICATION More...
 

Detailed Description

Request for blocks to another peer

Definition at line 23 of file blocks_request.hpp.

Member Typedef Documentation

Definition at line 43 of file blocks_request.hpp.

Member Function Documentation

bool kagome::network::BlocksRequest::attributeIsSet ( const BlockAttribute attribute) const
inline

Definition at line 39 of file blocks_request.hpp.

kagome::network::BlocksRequest::Fingerprint kagome::network::BlocksRequest::fingerprint ( ) const
inline

Definition at line 70 of file blocks_request.hpp.

Member Data Documentation

Direction kagome::network::BlocksRequest::direction {}

sequence direction

Definition at line 29 of file blocks_request.hpp.

BlockAttributes kagome::network::BlocksRequest::fields {}

bits, showing, which parts of BlockData to return

Definition at line 25 of file blocks_request.hpp.

primitives::BlockId kagome::network::BlocksRequest::from {}

start from this block

Definition at line 27 of file blocks_request.hpp.

constexpr BlockAttributes kagome::network::BlocksRequest::kBasicAttributes
static
Initial value:

includes HEADER, BODY and JUSTIFICATION

Definition at line 35 of file blocks_request.hpp.

std::optional<uint32_t> kagome::network::BlocksRequest::max {}

maximum number of blocks to return; an implementation defined maximum is used when unspecified

Definition at line 32 of file blocks_request.hpp.


The documentation for this struct was generated from the following file: