Skip to content

sgns::confirm_req

#include <common.hpp>

Inherits from sgns::message

Public Functions

Name
confirm_req(bool & error_a, sgns::stream & stream_a, sgns::message_header const & header_a, sgns::block_uniquer * uniquer_a =nullptr)
confirm_req(std::shared_ptr< sgns::block > block_a)
confirm_req(std::vector< std::pair< sgns::block_hash, sgns::root > > const & roots_hashes_a)
confirm_req(sgns::block_hash const & hash_a, sgns::root const & root_a)
virtual void serialize(sgns::stream & stream_a, bool use_epoch_2_min_version_a) const override
bool deserialize(sgns::stream & stream_a, sgns::block_uniquer * uniquer_a =nullptr)
virtual void visit(sgns::message_visitor & visitor_a) const override
bool operator==(sgns::confirm_req const & other_a) const
std::string roots_string() const
size_t size(sgns::block_type type_a, size_t count =0)

Public Attributes

Name
std::shared_ptr< sgns::block > block
std::vector< std::pair< sgns::block_hash, sgns::root > > roots_hashes

Additional inherited members

Public Functions inherited from sgns::message

Name
message(sgns::message_type type_a)
message(sgns::message_header const & header_a)
virtual ~message() =default
std::shared_ptr< std::vector< uint8_t > > to_bytes(bool use_epoch_2_min_version_a) const
sgns::shared_const_buffer to_shared_const_buffer(bool use_epoch_2_min_version_a) const

Public Attributes inherited from sgns::message

Name
sgns::message_header header

Public Functions Documentation

function confirm_req

confirm_req(
    bool & error_a,
    sgns::stream & stream_a,
    sgns::message_header const & header_a,
    sgns::block_uniquer * uniquer_a =nullptr
)

function confirm_req

explicit confirm_req(
    std::shared_ptr< sgns::block > block_a
)

function confirm_req

confirm_req(
    std::vector< std::pair< sgns::block_hash, sgns::root > > const & roots_hashes_a
)

function confirm_req

confirm_req(
    sgns::block_hash const & hash_a,
    sgns::root const & root_a
)

function serialize

virtual void serialize(
    sgns::stream & stream_a,
    bool use_epoch_2_min_version_a
) const override

Reimplements: sgns::message::serialize

function deserialize

bool deserialize(
    sgns::stream & stream_a,
    sgns::block_uniquer * uniquer_a =nullptr
)

function visit

virtual void visit(
    sgns::message_visitor & visitor_a
) const override

Reimplements: sgns::message::visit

function operator==

bool operator==(
    sgns::confirm_req const & other_a
) const

function roots_string

std::string roots_string() const

function size

static size_t size(
    sgns::block_type type_a,
    size_t count =0
)

Public Attributes Documentation

variable block

std::shared_ptr< sgns::block > block;

variable roots_hashes

std::vector< std::pair< sgns::block_hash, sgns::root > > roots_hashes;

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