Monero C++ Library
Loading...
Searching...
No Matches
monero::monero_auxiliary_pow Struct Reference

#include <monero_daemon_model.h>

Inheritance diagram for monero::monero_auxiliary_pow:
monero::serializable_struct

Public Member Functions

 monero_auxiliary_pow (const std::string &id, const std::string &hash)
 
rapidjson::Value to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override
 
- Public Member Functions inherited from monero::serializable_struct
std::string serialize () const
 

Static Public Member Functions

static void from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_auxiliary_pow > &aux_pow)
 
static std::shared_ptr< monero_auxiliary_powdeserialize (const std::string &json)
 

Public Attributes

boost::optional< std::string > m_id
 
boost::optional< std::string > m_hash
 

Detailed Description

Identifies an auxiliary chain's block by id and proof-of-work hash for merge mining.

Member Function Documentation

◆ to_rapidjson_val()

rapidjson::Value monero::monero_auxiliary_pow::to_rapidjson_val ( rapidjson::Document::AllocatorType & allocator) const
overridevirtual

Converts the struct to a rapidjson Value.

Parameters
allocatoris the rapidjson document allocator
Returns
the struct as a rapidjson Value

Implements monero::serializable_struct.


The documentation for this struct was generated from the following files: