src/wallet/node_rpc_proxy.cpp
// Updates the cache of all master nodes; the mutex lock must be already held
Updates the cache of all master nodes; the mutex lock must be already held
Updates the cache of all master nodes ; the mutex lock must be already held
bool NodeRPCProxy::update_all_master_nodes_cache(uint64_t height) const {
  if (m_offline)
    return false;
  try {
    auto res = invoke_json_rpc<rpc::GET_MASTER_NODES>({});
    m_all_master_nodes_cached_height = height;
    m_all_master_nodes = std::move(res.master_node_states);
  } catch (...) { return false; }
  return true;
}
bool NodeRPCProxy :: update_all_master_nodes_cache ( uint64_t height ) const { if ( m_offline ) return false ; try { auto res = invoke_json_rpc < rpc :: GET_MASTER_NODES > ( { } ) ; m_all_master_nodes_cached_height = height ; m_all_master_nodes = std :: move ( res . master_node_states ) ; } catch ( ... ) { return false ; } return true ; }
Updates the cache of all master nodes; the mutex lock must be already held
Updates the cache of all master nodes ; the mutex lock must be already held