Skip to content

sgns::node_id_handshake

#include <common.hpp>

Inherits from sgns::message

Public Functions

Name
node_id_handshake(bool & error_a, sgns::stream & stream_a, sgns::message_header const & header_a)
node_id_handshake(boost::optional< sgns::uint256_union > query, boost::optional< std::pair< sgns::account, sgns::signature > > response)
virtual void serialize(sgns::stream & stream_a, bool use_epoch_2_min_version_a) const override
bool deserialize(sgns::stream & stream_a)
virtual void visit(sgns::message_visitor & visitor_a) const override
bool operator==(sgns::node_id_handshake const & other_a) const
size_t size() const
size_t size(sgns::message_header const & header_a)

Public Attributes

Name
boost::optional< sgns::uint256_union > query
boost::optional< std::pair< sgns::account, sgns::signature > > response

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 node_id_handshake

node_id_handshake(
    bool & error_a,
    sgns::stream & stream_a,
    sgns::message_header const & header_a
)

function node_id_handshake

node_id_handshake(
    boost::optional< sgns::uint256_union > query,
    boost::optional< std::pair< sgns::account, sgns::signature > > response
)

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
)

function visit

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

Reimplements: sgns::message::visit

function operator==

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

function size

size_t size() const

function size

static size_t size(
    sgns::message_header const & header_a
)

Public Attributes Documentation

variable query

boost::optional< sgns::uint256_union > query;

variable response

boost::optional< std::pair< sgns::account, sgns::signature > > response;

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