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

#include <monero_daemon_rpc_model.h>

Inheritance diagram for monero::monero_get_blocks_by_hash_request:
monero::monero_rpc_request monero::serializable_struct

Public Member Functions

 monero_get_blocks_by_hash_request (const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune, uint64_t max_block_count=0)
 
rapidjson::Value to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override
 
- Public Member Functions inherited from monero::monero_rpc_request
 monero_rpc_request (const std::string &method, const std::shared_ptr< serializable_struct > &params, bool json_rpc=true)
 
bool is_json_rpc () const
 
rapidjson::Value to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override
 
- Public Member Functions inherited from monero::serializable_struct
std::string serialize () const
 

Public Attributes

std::vector< std::string > m_block_hashes
 
uint64_t m_start_height
 
bool m_prune
 
uint64_t m_max_block_count
 
- Public Attributes inherited from monero::monero_rpc_request
boost::optional< std::string > m_id
 
boost::optional< std::string > m_version
 
boost::optional< std::string > m_method
 
std::shared_ptr< serializable_structm_params
 

Detailed Description

Models paramaters for monerod-rpc /get_blocks.bin method (fast sync by short chain history).

Member Function Documentation

◆ to_rapidjson_val()

rapidjson::Value monero::monero_get_blocks_by_hash_request::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: