6 #ifndef KAGOME_BLOCKS_REQUEST_HPP 7 #define KAGOME_BLOCKS_REQUEST_HPP 32 std::optional<uint32_t>
max{};
50 struct std::hash<
kagome::network::BlocksRequest> {
56 result, std::hash<kagome::primitives::BlockId>()(blocks_request.
from));
60 std::hash<kagome::network::Direction>()(blocks_request.
direction));
63 result, std::hash<std::optional<uint32_t>>()(blocks_request.
max));
71 return std::hash<BlocksRequest>()(*
this);
74 #endif // KAGOME_BLOCKS_REQUEST_HPP
Include a justification for the block.
bool attributeIsSet(const BlockAttribute &attribute) const
BlockAttributes fields
bits, showing, which parts of BlockData to return
auto operator()(const kagome::network::BlocksRequest &blocks_request) const
primitives::BlockId from
start from this block
boost::variant< BlockHash, BlockNumber > BlockId
Block id is the variant over BlockHash and BlockNumber.
Fingerprint fingerprint() const
std::optional< uint32_t > max
Direction direction
sequence direction
static constexpr BlockAttributes kBasicAttributes
includes HEADER, BODY and JUSTIFICATION