Skip to content

sgns::primitives::BlockData

More...

#include <block_data.hpp>

Public Functions

Name
boost::optional< primitives::Block > toBlock() const

Public Attributes

Name
primitives::BlockHash hash
boost::optional< primitives::BlockHeader > header
boost::optional< primitives::BlockBody > body
boost::optional< base::Buffer > receipt
boost::optional< base::Buffer > message_queue
boost::optional< primitives::Justification > justification

Detailed Description

struct sgns::primitives::BlockData;

Data, describing the block. Used for example in BlockRequest, where we need to get certain information about the block

Public Functions Documentation

function toBlock

inline boost::optional< primitives::Block > toBlock() const

Return: block, if at least header exists in this BlockData, nothing otherwise

Convert a block data into the block

Public Attributes Documentation

variable hash

primitives::BlockHash hash;

variable header

boost::optional< primitives::BlockHeader > header;

variable body

boost::optional< primitives::BlockBody > body;

variable receipt

boost::optional< base::Buffer > receipt;

variable message_queue

boost::optional< base::Buffer > message_queue;

variable justification

boost::optional< primitives::Justification > justification;

Updated on 2026-03-04 at 13:10:43 -0800