Electroneum
Public Member Functions | Private Member Functions | Private Attributes | List of all members
tools::NodeRPCProxy Class Reference

#include <node_rpc_proxy.h>

Collaboration diagram for tools::NodeRPCProxy:
Collaboration graph
[legend]

Public Member Functions

 NodeRPCProxy (epee::net_utils::http::http_simple_client &http_client, boost::recursive_mutex &mutex)
 
void invalidate ()
 
void set_offline (bool offline)
 
boost::optional< std::string > get_rpc_version (uint32_t &version) const
 
boost::optional< std::string > get_height (uint64_t &height) const
 
void set_height (uint64_t h)
 
boost::optional< std::string > get_target_height (uint64_t &height) const
 
boost::optional< std::string > get_block_weight_limit (uint64_t &block_weight_limit) const
 
boost::optional< std::string > get_earliest_height (uint8_t version, uint64_t &earliest_height) const
 
boost::optional< std::string > get_dynamic_base_fee_estimate (uint64_t grace_blocks, uint64_t &fee) const
 
boost::optional< std::string > get_fee_quantization_mask (uint64_t &fee_quantization_mask) const
 

Private Member Functions

boost::optional< std::string > get_info () const
 

Private Attributes

epee::net_utils::http::http_simple_client & m_http_client
 
boost::recursive_mutex & m_daemon_rpc_mutex
 
bool m_offline
 
uint64_t m_height
 
uint64_t m_earliest_height [256]
 
uint64_t m_dynamic_base_fee_estimate
 
uint64_t m_dynamic_base_fee_estimate_cached_height
 
uint64_t m_dynamic_base_fee_estimate_grace_blocks
 
uint64_t m_fee_quantization_mask
 
uint32_t m_rpc_version
 
uint64_t m_target_height
 
uint64_t m_block_weight_limit
 
time_t m_get_info_time
 

Constructor & Destructor Documentation

◆ NodeRPCProxy()

tools::NodeRPCProxy::NodeRPCProxy ( epee::net_utils::http::http_simple_client &  http_client,
boost::recursive_mutex &  mutex 
)

Member Function Documentation

◆ get_block_weight_limit()

boost::optional< std::string > tools::NodeRPCProxy::get_block_weight_limit ( uint64_t &  block_weight_limit) const

◆ get_dynamic_base_fee_estimate()

boost::optional< std::string > tools::NodeRPCProxy::get_dynamic_base_fee_estimate ( uint64_t  grace_blocks,
uint64_t &  fee 
) const

◆ get_earliest_height()

boost::optional< std::string > tools::NodeRPCProxy::get_earliest_height ( uint8_t  version,
uint64_t &  earliest_height 
) const

◆ get_fee_quantization_mask()

boost::optional< std::string > tools::NodeRPCProxy::get_fee_quantization_mask ( uint64_t &  fee_quantization_mask) const

◆ get_height()

boost::optional< std::string > tools::NodeRPCProxy::get_height ( uint64_t &  height) const

◆ get_info()

boost::optional< std::string > tools::NodeRPCProxy::get_info ( ) const
private

◆ get_rpc_version()

boost::optional< std::string > tools::NodeRPCProxy::get_rpc_version ( uint32_t &  version) const

◆ get_target_height()

boost::optional< std::string > tools::NodeRPCProxy::get_target_height ( uint64_t &  height) const

◆ invalidate()

void tools::NodeRPCProxy::invalidate ( )

◆ set_height()

void tools::NodeRPCProxy::set_height ( uint64_t  h)

◆ set_offline()

void tools::NodeRPCProxy::set_offline ( bool  offline)
inline

Member Data Documentation

◆ m_block_weight_limit

uint64_t tools::NodeRPCProxy::m_block_weight_limit
mutableprivate

◆ m_daemon_rpc_mutex

boost::recursive_mutex& tools::NodeRPCProxy::m_daemon_rpc_mutex
private

◆ m_dynamic_base_fee_estimate

uint64_t tools::NodeRPCProxy::m_dynamic_base_fee_estimate
mutableprivate

◆ m_dynamic_base_fee_estimate_cached_height

uint64_t tools::NodeRPCProxy::m_dynamic_base_fee_estimate_cached_height
mutableprivate

◆ m_dynamic_base_fee_estimate_grace_blocks

uint64_t tools::NodeRPCProxy::m_dynamic_base_fee_estimate_grace_blocks
mutableprivate

◆ m_earliest_height

uint64_t tools::NodeRPCProxy::m_earliest_height[256]
mutableprivate

◆ m_fee_quantization_mask

uint64_t tools::NodeRPCProxy::m_fee_quantization_mask
mutableprivate

◆ m_get_info_time

time_t tools::NodeRPCProxy::m_get_info_time
mutableprivate

◆ m_height

uint64_t tools::NodeRPCProxy::m_height
mutableprivate

◆ m_http_client

epee::net_utils::http::http_simple_client& tools::NodeRPCProxy::m_http_client
private

◆ m_offline

bool tools::NodeRPCProxy::m_offline
private

◆ m_rpc_version

uint32_t tools::NodeRPCProxy::m_rpc_version
mutableprivate

◆ m_target_height

uint64_t tools::NodeRPCProxy::m_target_height
mutableprivate

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