Electroneum
Loading...
Searching...
No Matches
cryptonote::tx_extra_merge_mining_tag Struct Reference

#include <tx_extra.h>

Classes

struct  serialize_helper

Public Member Functions

template<template< bool > class Archive>
bool do_serialize (Archive< false > &ar)
template<template< bool > class Archive>
bool do_serialize (Archive< true > &ar)

Public Attributes

size_t depth
crypto::hash merkle_root

Detailed Description

Definition at line 119 of file tx_extra.h.

Member Function Documentation

◆ do_serialize() [1/2]

template<template< bool > class Archive>
bool cryptonote::tx_extra_merge_mining_tag::do_serialize ( Archive< false > & ar)
inline

Definition at line 140 of file tx_extra.h.

141 {
142 std::string field;
143 if(!::do_serialize(ar, field))
144 return false;
145
146 std::istringstream iss(field);
147 binary_archive<false> iar(iss);
148 serialize_helper helper(*this);
149 return ::serialization::serialize(iar, helper);
150 }
bool do_serialize(Archive< false > &ar)
Definition tx_extra.h:140
Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_serialize() [2/2]

template<template< bool > class Archive>
bool cryptonote::tx_extra_merge_mining_tag::do_serialize ( Archive< true > & ar)
inline

Definition at line 154 of file tx_extra.h.

155 {
156 std::ostringstream oss;
157 binary_archive<true> oar(oss);
158 serialize_helper helper(*this);
159 if(!::do_serialize(oar, helper))
160 return false;
161
162 std::string field = oss.str();
163 return ::serialization::serialize(ar, field);
164 }
Here is the call graph for this function:

Member Data Documentation

◆ depth

size_t cryptonote::tx_extra_merge_mining_tag::depth

Definition at line 135 of file tx_extra.h.

◆ merkle_root

crypto::hash cryptonote::tx_extra_merge_mining_tag::merkle_root

Definition at line 136 of file tx_extra.h.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/cryptonote_basic/tx_extra.h