From c24118e18d04b6b4fd0b3aafa1cfffa56e9cee6d Mon Sep 17 00:00:00 2001
From: woodser <13068859+woodser@users.noreply.github.com>
Date: Fri, 28 Aug 2026 07:46:08 -0400
Subject: [PATCH 1/2] wallet: do not gate daemon calls on a cached connection
check
Drop the cached connection state, set the daemon connection without a
blocking check, and surface natural connection errors like monero-wallet-rpc.
---
src/wallet/monero_wallet_full.cpp | 37 +++++++++++--------------------
src/wallet/monero_wallet_full.h | 1 -
2 files changed, 13 insertions(+), 25 deletions(-)
diff --git a/src/wallet/monero_wallet_full.cpp b/src/wallet/monero_wallet_full.cpp
index 84a91156..7cf7a3b2 100644
--- a/src/wallet/monero_wallet_full.cpp
+++ b/src/wallet/monero_wallet_full.cpp
@@ -1249,7 +1249,6 @@ namespace monero {
if (!m_w2->set_daemon(uri, login, trusted, std::move(ssl), proxy_uri)) {
throw std::runtime_error("Failed to initialize wallet with daemon connection");
}
- is_connected_to_daemon(); // update m_is_connected cache // TODO: better naming?
}
void monero_wallet_full::set_daemon_connection(const std::shared_ptr This is the complete list of members for monero::monero_daemon, including all inherited members. Add auxiliary proof-of-work to a block template for merge mining, returning an updated block template whose Merkle root commits to the given auxiliary blocks. Reimplemented in monero::monero_daemon_rpc.
+
-
+ add_listener(monero_daemon_listener &listener) monero::monero_daemon inlinevirtual
+ add_auxiliary_pow(const std::string &block_template_blob, const std::vector< std::shared_ptr< monero_auxiliary_pow > > &aux_pow) monero::monero_daemon inlinevirtual
+ add_listener(monero_daemon_listener &listener) monero::monero_daemon inlinevirtual calculate_pow(uint32_t major_version, uint64_t height, const std::string &block_blob, const std::string &seed_hash) monero::monero_daemon inlinevirtual check_for_update() monero::monero_daemon inlinevirtual
- download_update(const std::string &path="") monero::monero_daemon inlinevirtual
- flush_tx_pool() monero::monero_daemon inlinevirtual
- flush_tx_pool(const std::vector< std::string > &hashes) monero::monero_daemon inlinevirtual
- flush_tx_pool(const std::string &hash) monero::monero_daemon inlinevirtual
- generate_blocks(const std::string &wallet_address, uint64_t num_blocks, const boost::optional< std::string > &prev_block_hash=boost::none, const boost::optional< uint32_t > &starting_nonce=boost::none) monero::monero_daemon inlinevirtual
- get_alt_block_hashes() monero::monero_daemon inlinevirtual
- get_alt_chains() monero::monero_daemon inlinevirtual
- get_block_by_hash(const std::string &block_hash) monero::monero_daemon inlinevirtual
- get_block_by_height(uint64_t height) monero::monero_daemon inlinevirtual
- get_block_hash(uint64_t height) monero::monero_daemon inlinevirtual
- get_block_hashes(const std::vector< std::string > &block_hashes, uint64_t start_height) monero::monero_daemon inlinevirtual
- get_block_header_by_hash(const std::string &block_hash) monero::monero_daemon inlinevirtual
- get_block_header_by_height(uint64_t height) monero::monero_daemon inlinevirtual
- get_block_headers_by_range(uint64_t start_height, uint64_t end_height) monero::monero_daemon inlinevirtual
- get_block_template(const std::string &wallet_address, const boost::optional< int > &reserve_size=boost::none) monero::monero_daemon inlinevirtual
- get_blocks_by_hash(const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune) monero::monero_daemon inlinevirtual
- get_blocks_by_height(const std::vector< uint64_t > &heights) monero::monero_daemon inlinevirtual
- get_blocks_by_range(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height) monero::monero_daemon inlinevirtual
- get_blocks_by_range_chunked(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height, boost::optional< uint64_t > max_chunk_size) monero::monero_daemon inlinevirtual
- get_download_limit() monero::monero_daemon inlinevirtual
- get_fee_estimate(uint64_t grace_blocks=0) monero::monero_daemon inlinevirtual
- get_hard_fork_info() monero::monero_daemon inlinevirtual
- get_height() monero::monero_daemon inlinevirtual
- get_info() monero::monero_daemon inlinevirtual
- get_key_image_spent_status(const std::string &key_image) monero::monero_daemon inlinevirtual
- get_key_image_spent_statuses(const std::vector< std::string > &key_images) monero::monero_daemon inlinevirtual
- get_known_peers() monero::monero_daemon inlinevirtual
- get_last_block_header() monero::monero_daemon inlinevirtual
+ get_listeners() monero::monero_daemon inlinevirtual
+ flush_cache(bool bad_blocks=false) monero::monero_daemon inlinevirtual
+ flush_tx_pool() monero::monero_daemon inlinevirtual
+ flush_tx_pool(const std::vector< std::string > &hashes) monero::monero_daemon inlinevirtual
+ flush_tx_pool(const std::string &hash) monero::monero_daemon inlinevirtual
+ generate_blocks(const std::string &wallet_address, uint64_t num_blocks, const boost::optional< std::string > &prev_block_hash=boost::none, const boost::optional< uint32_t > &starting_nonce=boost::none) monero::monero_daemon inlinevirtual
+ get_alt_block_hashes() monero::monero_daemon inlinevirtual
+ get_alt_chains() monero::monero_daemon inlinevirtual
+ get_block_by_hash(const std::string &block_hash) monero::monero_daemon inlinevirtual
+ get_block_by_height(uint64_t height) monero::monero_daemon inlinevirtual
+ get_block_hash(uint64_t height) monero::monero_daemon inlinevirtual
+ get_block_hashes(const std::vector< std::string > &block_hashes) monero::monero_daemon inlinevirtual
+ get_block_header_by_hash(const std::string &block_hash) monero::monero_daemon inlinevirtual
+ get_block_header_by_height(uint64_t height) monero::monero_daemon inlinevirtual
+ get_block_headers_by_range(uint64_t start_height, uint64_t end_height) monero::monero_daemon inlinevirtual
+ get_block_template(const std::string &wallet_address, const boost::optional< int > &reserve_size=boost::none) monero::monero_daemon inlinevirtual
+ get_blocks_by_hash(const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune, uint64_t max_block_count=0) monero::monero_daemon inlinevirtual
+ get_blocks_by_height(const std::vector< uint64_t > &heights) monero::monero_daemon inlinevirtual
+ get_blocks_by_range(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height) monero::monero_daemon inlinevirtual
+ get_blocks_by_range_chunked(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height, boost::optional< uint64_t > max_chunk_size) monero::monero_daemon inlinevirtual
+ get_download_limit() monero::monero_daemon inlinevirtual
+ get_fee_estimate(uint64_t grace_blocks=0) monero::monero_daemon inlinevirtual
+ get_hard_fork_info() monero::monero_daemon inlinevirtual
+ get_height() monero::monero_daemon inlinevirtual
+ get_info() monero::monero_daemon inlinevirtual
+ get_key_image_spent_status(const std::string &key_image) monero::monero_daemon inlinevirtual
+ get_key_image_spent_statuses(const std::vector< std::string > &key_images) monero::monero_daemon inlinevirtual
+ get_known_peers() monero::monero_daemon inlinevirtual
+ get_last_block_header() monero::monero_daemon inlinevirtual
+ get_listeners() monero::monero_daemon inlinevirtual get_miner_data() monero::monero_daemon inlinevirtual get_miner_tx_sum(uint64_t height, uint64_t num_blocks) monero::monero_daemon inlinevirtual
- get_mining_status() monero::monero_daemon inlinevirtual
- get_output_distribution(const std::vector< uint64_t > &amounts, const boost::optional< bool > &is_cumulative=boost::none, const boost::optional< uint64_t > &start_height=boost::none, const boost::optional< uint64_t > &end_height=boost::none) monero::monero_daemon inlinevirtual
+ get_output_histogram(const std::vector< uint64_t > &amounts, const boost::optional< int > &min_count, const boost::optional< int > &max_count, const boost::optional< bool > &is_unlocked, const boost::optional< int > &recent_cutoff) monero::monero_daemon inlinevirtual
+ get_network_stats() monero::monero_daemon inlinevirtual
+ get_output_distribution(const std::vector< uint64_t > &amounts, const boost::optional< bool > &is_cumulative=boost::none, const boost::optional< uint64_t > &start_height=boost::none, const boost::optional< uint64_t > &end_height=boost::none) monero::monero_daemon inlinevirtual
+ get_output_histogram(const std::vector< uint64_t > &amounts, const boost::optional< int > &min_count, const boost::optional< int > &max_count, const boost::optional< bool > &is_unlocked, const boost::optional< int > &recent_cutoff) monero::monero_daemon inlinevirtual get_output_indices(const std::string &tx_hash) monero::monero_daemon inlinevirtual
- get_outputs(const std::vector< monero_output > &outputs) monero::monero_daemon inlinevirtual
- get_peer_bans() monero::monero_daemon inlinevirtual
+ get_peers() monero::monero_daemon inlinevirtual
+ get_peer_ban(const std::string &address) monero::monero_daemon inlinevirtual
+ get_peer_bans() monero::monero_daemon inlinevirtual
+ get_peers() monero::monero_daemon inlinevirtual get_public_peers(bool include_offline=false) monero::monero_daemon inlinevirtual get_sync_info() monero::monero_daemon inlinevirtual get_tx(const std::string &tx_hash, bool prune=false) monero::monero_daemon inlinevirtual
@@ -144,27 +152,34 @@
get_tx_hex(const std::string &tx_hash, bool prune=false) monero::monero_daemon inlinevirtual get_upload_limit() monero::monero_daemon inlinevirtual get_version() monero::monero_daemon inlinevirtual
- is_trusted() monero::monero_daemon inlinevirtual
- prune_blockchain(bool check) monero::monero_daemon inlinevirtual
- relay_tx_by_hash(const std::string &tx_hash) monero::monero_daemon inlinevirtual
+ relay_txs_by_hash(const std::vector< std::string > &tx_hashes) monero::monero_daemon inlinevirtual
+ pop_blocks(uint64_t num_blocks) monero::monero_daemon inlinevirtual
+ prune_blockchain(bool check) monero::monero_daemon inlinevirtual
+ relay_tx_by_hash(const std::string &tx_hash) monero::monero_daemon inlinevirtual
+ relay_txs_by_hash(const std::vector< std::string > &tx_hashes) monero::monero_daemon inlinevirtual remove_bootstrap_daemon() monero::monero_daemon inlinevirtual remove_listener(monero_daemon_listener &listener) monero::monero_daemon inlinevirtual remove_listeners() monero::monero_daemon inlinevirtual reset_download_limit() monero::monero_daemon inlinevirtual
+ reset_upload_limit() monero::monero_daemon inlinevirtual
+ save_blockchain() monero::monero_daemon inlinevirtual set_bootstrap_daemon(const std::string &address, const std::string &username="", const std::string &password="", const std::string &proxy="") monero::monero_daemon inlinevirtual set_download_limit(int limit) monero::monero_daemon inlinevirtual
- set_incoming_peer_limit(int limit) monero::monero_daemon inlinevirtual
- set_outgoing_peer_limit(int limit) monero::monero_daemon inlinevirtual
- set_peer_ban(const std::shared_ptr< monero_ban > &ban) monero::monero_daemon inlinevirtual
- set_peer_bans(const std::vector< std::shared_ptr< monero_ban > > &bans) monero::monero_daemon inlinevirtual
- set_upload_limit(int limit) monero::monero_daemon inlinevirtual
- start_mining(const std::string &address, boost::optional< uint64_t > num_threads, boost::optional< bool > is_background, boost::optional< bool > ignore_battery) monero::monero_daemon inlinevirtual
- stop() monero::monero_daemon inlinevirtual
- stop_mining() monero::monero_daemon inlinevirtual
- submit_block(const std::string &block_blob) monero::monero_daemon inlinevirtual
- submit_blocks(const std::vector< std::string > &block_blobs) monero::monero_daemon inlinevirtual
- submit_tx_hex(const std::string &tx_hex, bool do_not_relay=false) monero::monero_daemon inlinevirtual
- wait_for_next_block_header() monero::monero_daemon inlinevirtual
+ ~monero_daemon() monero::monero_daemon inlinevirtual
+ set_log_categories(const std::string &categories="") monero::monero_daemon inlinevirtual
+ set_log_hash_rate(bool is_visible) monero::monero_daemon inlinevirtual
+ set_log_level(int level) monero::monero_daemon inlinevirtual
+ set_outgoing_peer_limit(int limit) monero::monero_daemon inlinevirtual
+ set_peer_ban(const std::shared_ptr< monero_ban > &ban) monero::monero_daemon inlinevirtual
+ set_peer_bans(const std::vector< std::shared_ptr< monero_ban > > &bans) monero::monero_daemon inlinevirtual
+ set_upload_limit(int limit) monero::monero_daemon inlinevirtual
+ start_mining(const std::string &address, boost::optional< uint64_t > num_threads, boost::optional< bool > is_background, boost::optional< bool > ignore_battery) monero::monero_daemon inlinevirtual
+ stop() monero::monero_daemon inlinevirtual
+ stop_mining() monero::monero_daemon inlinevirtual
+ submit_block(const std::string &block_blob) monero::monero_daemon inlinevirtual
+ submit_blocks(const std::vector< std::string > &block_blobs) monero::monero_daemon inlinevirtual
+ submit_tx_hex(const std::string &tx_hex, bool do_not_relay=false) monero::monero_daemon inlinevirtual
+ wait_for_next_block_header() monero::monero_daemon inlinevirtual ~monero_daemon() monero::monero_daemon inlinevirtual
diff --git a/docs/doxygen/classmonero_1_1monero__daemon.html b/docs/doxygen/classmonero_1_1monero__daemon.html
index 8977bea2..3e575b8d 100644
--- a/docs/doxygen/classmonero_1_1monero__daemon.html
+++ b/docs/doxygen/classmonero_1_1monero__daemon.html
@@ -128,6 +128,12 @@
virtual std::shared_ptr< monero_block_template > get_block_template (const std::string &wallet_address, const boost::optional< int > &reserve_size=boost::none)
+
+virtual std::shared_ptr< monero_miner_data > get_miner_data ()
+
+virtual std::string calculate_pow (uint32_t major_version, uint64_t height, const std::string &block_blob, const std::string &seed_hash)
+
+virtual std::shared_ptr< monero_add_auxiliary_pow_result > add_auxiliary_pow (const std::string &block_template_blob, const std::vector< std::shared_ptr< monero_auxiliary_pow > > &aux_pow) virtual std::shared_ptr< monero_block_header > get_last_block_header ()
@@ -138,8 +144,8 @@
virtual std::shared_ptr< monero_block_header > get_block_header_by_hash (const std::string &block_hash) virtual std::shared_ptr< monero_block > get_block_by_hash (const std::string &block_hash)
-
-virtual std::vector< std::shared_ptr< monero_block > > get_blocks_by_hash (const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune)
+
+virtual std::shared_ptr< monero_get_blocks_by_hash_result > get_blocks_by_hash (const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune, uint64_t max_block_count=0) virtual std::shared_ptr< monero_block > get_block_by_height (uint64_t height)
@@ -148,8 +154,8 @@
virtual std::vector< std::shared_ptr< monero_block > > get_blocks_by_height (const std::vector< uint64_t > &heights) virtual std::vector< std::shared_ptr< monero_block > > get_blocks_by_range_chunked (boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height, boost::optional< uint64_t > max_chunk_size)
-
-virtual std::vector< std::string > get_block_hashes (const std::vector< std::string > &block_hashes, uint64_t start_height)
+
+virtual std::shared_ptr< monero_get_block_hashes_result > get_block_hashes (const std::vector< std::string > &block_hashes) virtual std::shared_ptr< monero_tx > get_tx (const std::string &tx_hash, bool prune=false)
@@ -186,6 +192,8 @@
virtual std::vector< std::shared_ptr< monero_tx > > get_txs (const std::vector< std::string > &tx_hashes, bool prune=false) virtual std::vector< monero_key_image_spent_status > get_key_image_spent_statuses (const std::vector< std::string > &key_images)
+
+virtual std::vector< uint64_t > get_output_indices (const std::string &tx_hash) virtual std::vector< std::shared_ptr< monero_output > > get_outputs (const std::vector< monero_output > &outputs)
@@ -196,6 +204,8 @@
virtual std::vector< std::shared_ptr< monero_output_histogram_entry > > get_output_histogram (const std::vector< uint64_t > &amounts, const boost::optional< int > &min_count, const boost::optional< int > &max_count, const boost::optional< bool > &is_unlocked, const boost::optional< int > &recent_cutoff) virtual std::shared_ptr< monero_daemon_sync_info > get_sync_info ()
+
+virtual std::shared_ptr< monero_daemon_network_stats > get_network_stats () virtual std::shared_ptr< monero_hard_fork_info > get_hard_fork_info ()
@@ -218,6 +228,8 @@
virtual std::vector< std::shared_ptr< monero_alt_chain > > get_alt_chains () virtual std::vector< std::shared_ptr< monero_peer > > get_known_peers ()
+
+virtual std::vector< std::shared_ptr< monero_peer > > get_public_peers (bool include_offline=false) virtual void set_outgoing_peer_limit (int limit)
@@ -228,6 +240,8 @@
virtual void set_incoming_peer_limit (int limit) virtual void set_peer_ban (const std::shared_ptr< monero_ban > &ban)
+
+virtual std::shared_ptr< monero_ban > get_peer_ban (const std::string &address) virtual void start_mining (const std::string &address, boost::optional< uint64_t > num_threads, boost::optional< bool > is_background, boost::optional< bool > ignore_battery)
@@ -242,6 +256,22 @@
virtual void stop_mining () virtual std::shared_ptr< monero_prune_result > prune_blockchain (bool check)
+
+virtual void save_blockchain ()
+
+virtual uint64_t pop_blocks (uint64_t num_blocks)
+
+virtual void flush_cache (bool bad_blocks=false)
+
+virtual void set_bootstrap_daemon (const std::string &address, const std::string &username="", const std::string &password="", const std::string &proxy="")
+
+virtual void remove_bootstrap_daemon ()
+
+virtual void set_log_hash_rate (bool is_visible)
+
+virtual void set_log_level (int level)
+
+virtual std::string set_log_categories (const std::string &categories="") virtual std::shared_ptr< monero_daemon_update_check_result > check_for_update ()
@@ -281,6 +311,46 @@ virtual std::shared_ptr< monero_daemon_update_download_result > download_update (const std::string &path="") Member Function Documentation
+
+◆ add_auxiliary_pow()
+
+
+
+
+
+
+
+
+
+
+
+ virtual std::shared_ptr< monero_add_auxiliary_pow_result > monero::monero_daemon::add_auxiliary_pow
+ (
+ const std::string & block_template_blob,
+
+
+
+
+ const std::vector< std::shared_ptr< monero_auxiliary_pow > > & aux_pow )
+
+inlinevirtual
+
+
+
+
+ block_template_blob is the block template blob to add auxiliary PoW to
+ aux_pow identifies each auxiliary chain by id and its block's PoW hash
+
+◆ add_listener()
@@ -313,6 +383,58 @@ monero::monero_daemon_rpc.
+
|
+ +inlinevirtual | +
Calculate the proof-of-work hash of a mined block.
+| major_version | is the block's major version |
| height | is the block's height |
| block_blob | is the block's blob to hash |
| seed_hash | is the seed hash used to select the RandomX dataset/cache |
Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Flush the daemon's invalid block and transaction caches.
+| bad_blocks | specifies to flush the bad blocks cache (default false) |
Reimplemented in monero::monero_daemon_rpc.
+| virtual std::vector< std::string > monero::monero_daemon::get_block_hashes | +virtual std::shared_ptr< monero_get_block_hashes_result > monero::monero_daemon::get_block_hashes | ( | -const std::vector< std::string > & | block_hashes, | -||
| + | const std::vector< std::string > & | block_hashes | ) | - | uint64_t | start_height ) |
| block_hashes | specify block hashes to fetch; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block |
| start_height | is the starting height of block hashes to return |
| block_hashes | is a short chain history; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block which is required, or the request fails. |
Reimplemented in monero::monero_daemon_rpc.
+Reimplemented in monero::monero_daemon_rpc.
| virtual std::vector< std::shared_ptr< monero_block > > monero::monero_daemon::get_blocks_by_hash | +virtual std::shared_ptr< monero_get_blocks_by_hash_result > monero::monero_daemon::get_blocks_by_hash | ( | const std::vector< std::string > & | block_hashes, | - | bool | prune ) | +bool | prune, | + +
| + | + | uint64_t | max_block_count = 0 ) |
| block_hashes | are array of hashes; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block |
| start_height | is the start height to get blocks by hash |
| prune | specifies if returned blocks should be pruned (defaults to false) // TODO: test default |
| block_hashes | is a short chain history; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block |
| start_height | is the start height to resume from; when non-zero, daemon skips the search to find the last block and is used as-is, ignoring block_hashes — except when block_hashes[0] already matches the daemon's tip, which short-circuits to an empty result (see |
| prune | specifies if returned blocks should be pruned (defaults to false) |
| max_block_count | caps how many blocks the daemon returns in one call (0 leaves it to the daemon's own default limit); use this to chunk large ranges instead of taking whatever the daemon hands back |
Reimplemented in monero::monero_daemon_rpc.
+Reimplemented in monero::monero_daemon_rpc.
+
|
+ +inlinevirtual | +
Get the data needed to construct a block template for mining, e.g. for use by a pool that assembles its own block templates.
+Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Get network (bandwidth) statistics since the daemon started.
+Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Get the global output index of each output in a transaction.
+| tx_hash | is the hash of the transaction to get output indices for |
Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Get the ban status of a peer node.
+| address | is the address of the peer node to check, e.g. "1.2.3.4" or "1.2.3.4:18080" |
Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Get public nodes known to the daemon.
+| include_offline | specifies if offline nodes should be included (default false) |
Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Pop (remove) blocks from the top of the blockchain.
+| num_blocks | is the number of blocks to pop |
Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Disable the bootstrap daemon so the daemon no longer falls back to it.
+
+
|
+ +inlinevirtual | +
Save (flush) the blockchain to disk.
+ +Reimplemented in monero::monero_daemon_rpc.
+ +
+
|
+ +inlinevirtual | +
Set the bootstrap daemon used by the daemon to serve requests while it is not fully synced, e.g. a remote node.
+| address | is the bootstrap daemon's address (host:port), "auto" to select a public node automatically, or an empty string to disable the bootstrap daemon |
| username | is the username to authenticate with the bootstrap daemon (optional) |
| password | is the password to authenticate with the bootstrap daemon (optional) |
| proxy | is the proxy used to reach the bootstrap daemon, e.g. a SOCKS proxy (optional) |
Reimplemented in monero::monero_daemon_rpc.
+
+
|
+ +inlinevirtual | +
Set the daemon's log categories.
+| categories | are the log categories to set, e.g. "*:WARNING,net.p2p:DEBUG" (an empty string resets categories to the default) |
Reimplemented in monero::monero_daemon_rpc.
+ +
+
|
+ +inlinevirtual | +
Show or hide the mining hash rate in the daemon's console log.
+| is_visible | specifies if the hash rate should be logged |
Reimplemented in monero::monero_daemon_rpc.
+ +
+
|
+ +inlinevirtual | +
Set the daemon's log level.
+| level | is the log level to set, from 0 (least verbose) to 4 (most verbose) |
Reimplemented in monero::monero_daemon_rpc.
+This is the complete list of members for monero::monero_daemon_rpc, including all inherited members.
| add_listener(monero_daemon_listener &listener) override | monero::monero_daemon_rpc | virtual |
| add_auxiliary_pow(const std::string &block_template_blob, const std::vector< std::shared_ptr< monero_auxiliary_pow > > &aux_pow) override | monero::monero_daemon_rpc | virtual |
| add_listener(monero_daemon_listener &listener) override | monero::monero_daemon_rpc | virtual |
| calculate_pow(uint32_t major_version, uint64_t height, const std::string &block_blob, const std::string &seed_hash) override | monero::monero_daemon_rpc | virtual |
| check_for_update() override | monero::monero_daemon_rpc | virtual |
| download_update(const std::string &path="") override | monero::monero_daemon_rpc | virtual |
| flush_tx_pool(const std::vector< std::string > &hashes) override | monero::monero_daemon_rpc | virtual |
| flush_tx_pool() override | monero::monero_daemon_rpc | virtual |
| flush_tx_pool(const std::string &hash) override | monero::monero_daemon_rpc | virtual |
| generate_blocks(const std::string &wallet_address, uint64_t num_blocks, const boost::optional< std::string > &prev_block_hash=boost::none, const boost::optional< uint32_t > &starting_nonce=boost::none) override | monero::monero_daemon_rpc | virtual |
| get_alt_block_hashes() override | monero::monero_daemon_rpc | virtual |
| get_alt_chains() override | monero::monero_daemon_rpc | virtual |
| get_block_by_hash(const std::string &hash) override | monero::monero_daemon_rpc | virtual |
| get_block_by_height(uint64_t height) override | monero::monero_daemon_rpc | virtual |
| get_block_hash(uint64_t height) override | monero::monero_daemon_rpc | virtual |
| get_block_hashes(const std::vector< std::string > &block_hashes, uint64_t start_height) override | monero::monero_daemon_rpc | virtual |
| get_block_header_by_hash(const std::string &hash) override | monero::monero_daemon_rpc | virtual |
| get_block_header_by_height(uint64_t height) override | monero::monero_daemon_rpc | virtual |
| get_block_headers_by_range(uint64_t start_height, uint64_t end_height) override | monero::monero_daemon_rpc | virtual |
| get_block_template(const std::string &wallet_address, const boost::optional< int > &reserve_size=boost::none) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_hash(const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_height(const std::vector< uint64_t > &heights) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_range(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_range_chunked(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height, boost::optional< uint64_t > max_chunk_size) override | monero::monero_daemon_rpc | virtual |
| get_download_limit() override | monero::monero_daemon_rpc | virtual |
| get_fee_estimate(uint64_t grace_blocks=0) override | monero::monero_daemon_rpc | virtual |
| get_hard_fork_info() override | monero::monero_daemon_rpc | virtual |
| get_height() override | monero::monero_daemon_rpc | virtual |
| get_info() override | monero::monero_daemon_rpc | virtual |
| get_key_image_spent_status(const std::string &key_image) | monero::monero_daemon | inlinevirtual |
| get_key_image_spent_statuses(const std::vector< std::string > &key_images) override | monero::monero_daemon_rpc | virtual |
| get_known_peers() override | monero::monero_daemon_rpc | virtual |
| get_last_block_header() override | monero::monero_daemon_rpc | virtual |
| get_listeners() override | monero::monero_daemon_rpc | virtual |
| flush_cache(bool bad_blocks=false) override | monero::monero_daemon_rpc | virtual |
| flush_tx_pool(const std::vector< std::string > &hashes) override | monero::monero_daemon_rpc | virtual |
| flush_tx_pool() override | monero::monero_daemon_rpc | virtual |
| flush_tx_pool(const std::string &hash) override | monero::monero_daemon_rpc | virtual |
| generate_blocks(const std::string &wallet_address, uint64_t num_blocks, const boost::optional< std::string > &prev_block_hash=boost::none, const boost::optional< uint32_t > &starting_nonce=boost::none) override | monero::monero_daemon_rpc | virtual |
| get_alt_block_hashes() override | monero::monero_daemon_rpc | virtual |
| get_alt_chains() override | monero::monero_daemon_rpc | virtual |
| get_block_by_hash(const std::string &hash) override | monero::monero_daemon_rpc | virtual |
| get_block_by_height(uint64_t height) override | monero::monero_daemon_rpc | virtual |
| get_block_hash(uint64_t height) override | monero::monero_daemon_rpc | virtual |
| get_block_hashes(const std::vector< std::string > &block_hashes) override | monero::monero_daemon_rpc | virtual |
| get_block_header_by_hash(const std::string &hash) override | monero::monero_daemon_rpc | virtual |
| get_block_header_by_height(uint64_t height) override | monero::monero_daemon_rpc | virtual |
| get_block_headers_by_range(uint64_t start_height, uint64_t end_height) override | monero::monero_daemon_rpc | virtual |
| get_block_template(const std::string &wallet_address, const boost::optional< int > &reserve_size=boost::none) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_hash(const std::vector< std::string > &block_hashes, uint64_t start_height, bool prune, uint64_t max_block_count=0) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_height(const std::vector< uint64_t > &heights) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_range(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height) override | monero::monero_daemon_rpc | virtual |
| get_blocks_by_range_chunked(boost::optional< uint64_t > start_height, boost::optional< uint64_t > end_height, boost::optional< uint64_t > max_chunk_size) override | monero::monero_daemon_rpc | virtual |
| get_download_limit() override | monero::monero_daemon_rpc | virtual |
| get_fee_estimate(uint64_t grace_blocks=0) override | monero::monero_daemon_rpc | virtual |
| get_hard_fork_info() override | monero::monero_daemon_rpc | virtual |
| get_height() override | monero::monero_daemon_rpc | virtual |
| get_info() override | monero::monero_daemon_rpc | virtual |
| get_key_image_spent_status(const std::string &key_image) | monero::monero_daemon | inlinevirtual |
| get_key_image_spent_statuses(const std::vector< std::string > &key_images) override | monero::monero_daemon_rpc | virtual |
| get_known_peers() override | monero::monero_daemon_rpc | virtual |
| get_last_block_header() override | monero::monero_daemon_rpc | virtual |
| get_listeners() override | monero::monero_daemon_rpc | virtual |
| get_miner_data() override | monero::monero_daemon_rpc | virtual |
| get_miner_tx_sum(uint64_t height, uint64_t num_blocks) override | monero::monero_daemon_rpc | virtual |
| get_mining_status() override | monero::monero_daemon_rpc | virtual |
| get_output_distribution(const std::vector< uint64_t > &amounts, const boost::optional< bool > &is_cumulative=boost::none, const boost::optional< uint64_t > &start_height=boost::none, const boost::optional< uint64_t > &end_height=boost::none) override | monero::monero_daemon_rpc | virtual |
| get_output_histogram(const std::vector< uint64_t > &amounts, const boost::optional< int > &min_count, const boost::optional< int > &max_count, const boost::optional< bool > &is_unlocked, const boost::optional< int > &recent_cutoff) override | monero::monero_daemon_rpc | virtual |
| get_network_stats() override | monero::monero_daemon_rpc | virtual |
| get_output_distribution(const std::vector< uint64_t > &amounts, const boost::optional< bool > &is_cumulative=boost::none, const boost::optional< uint64_t > &start_height=boost::none, const boost::optional< uint64_t > &end_height=boost::none) override | monero::monero_daemon_rpc | virtual |
| get_output_histogram(const std::vector< uint64_t > &amounts, const boost::optional< int > &min_count, const boost::optional< int > &max_count, const boost::optional< bool > &is_unlocked, const boost::optional< int > &recent_cutoff) override | monero::monero_daemon_rpc | virtual |
| get_output_indices(const std::string &tx_hash) override | monero::monero_daemon_rpc | virtual |
| get_outputs(const std::vector< monero_output > &outputs) override | monero::monero_daemon_rpc | virtual |
| get_peer_bans() override | monero::monero_daemon_rpc | virtual |
| get_peers() override | monero::monero_daemon_rpc | virtual |
| get_peer_ban(const std::string &address) override | monero::monero_daemon_rpc | virtual |
| get_peer_bans() override | monero::monero_daemon_rpc | virtual |
| get_peers() override | monero::monero_daemon_rpc | virtual |
| get_public_peers(bool include_offline=false) override | monero::monero_daemon_rpc | virtual |
| get_rpc_connection() const | monero::monero_daemon_rpc | |
| get_sync_info() override | monero::monero_daemon_rpc | virtual |
| get_tx(const std::string &tx_hash, bool prune=false) | monero::monero_daemon | inlinevirtual |
| monero_daemon_poller (defined in monero::monero_daemon_rpc) | monero::monero_daemon_rpc | friend |
| monero_daemon_rpc(const std::shared_ptr< monero_rpc_connection > &rpc) (defined in monero::monero_daemon_rpc) | monero::monero_daemon_rpc | |
| monero_daemon_rpc(const std::string &uri, const std::string &username="", const std::string &password="", const std::string &proxy_uri="", const std::string &zmq_uri="", const boost::optional< uint32_t > &timeout=boost::none) (defined in monero::monero_daemon_rpc) | monero::monero_daemon_rpc | |
| prune_blockchain(bool check) override | monero::monero_daemon_rpc | virtual |
| relay_tx_by_hash(const std::string &tx_hash) | monero::monero_daemon | inlinevirtual |
| relay_txs_by_hash(const std::vector< std::string > &tx_hashes) override | monero::monero_daemon_rpc | virtual |
| pop_blocks(uint64_t num_blocks) override | monero::monero_daemon_rpc | virtual |
| prune_blockchain(bool check) override | monero::monero_daemon_rpc | virtual |
| relay_tx_by_hash(const std::string &tx_hash) | monero::monero_daemon | inlinevirtual |
| relay_txs_by_hash(const std::vector< std::string > &tx_hashes) override | monero::monero_daemon_rpc | virtual |
| remove_bootstrap_daemon() | monero::monero_daemon | inlinevirtual |
| remove_listener(monero_daemon_listener &listener) override | monero::monero_daemon_rpc | virtual |
| remove_listeners() override | monero::monero_daemon_rpc | virtual |
| reset_download_limit() override | monero::monero_daemon_rpc | virtual |
| reset_upload_limit() override | monero::monero_daemon_rpc | virtual |
| save_blockchain() override | monero::monero_daemon_rpc | virtual |
| set_bootstrap_daemon(const std::string &address, const std::string &username="", const std::string &password="", const std::string &proxy="") override | monero::monero_daemon_rpc | virtual |
| set_download_limit(int limit) override | monero::monero_daemon_rpc | virtual |
| set_incoming_peer_limit(int limit) override | monero::monero_daemon_rpc | virtual |
| set_outgoing_peer_limit(int limit) override | monero::monero_daemon_rpc | virtual |
| set_peer_ban(const std::shared_ptr< monero_ban > &ban) | monero::monero_daemon | inlinevirtual |
| set_peer_bans(const std::vector< std::shared_ptr< monero_ban > > &bans) override | monero::monero_daemon_rpc | virtual |
| set_poll_period_in_ms(uint64_t period_ms) | monero::monero_daemon_rpc | |
| set_upload_limit(int limit) override | monero::monero_daemon_rpc | virtual |
| start_mining(const std::string &address, boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery) override | monero::monero_daemon_rpc | virtual |
| stop() override | monero::monero_daemon_rpc | virtual |
| stop_mining() override | monero::monero_daemon_rpc | virtual |
| submit_block(const std::string &block_blob) | monero::monero_daemon | inlinevirtual |
| submit_blocks(const std::vector< std::string > &block_blobs) override | monero::monero_daemon_rpc | virtual |
| submit_tx_hex(const std::string &tx_hex, bool do_not_relay=false) override | monero::monero_daemon_rpc | virtual |
| wait_for_next_block_header() override | monero::monero_daemon_rpc | virtual |
| ~monero_daemon() | monero::monero_daemon | inlinevirtual |
| ~monero_daemon_rpc() override | monero::monero_daemon_rpc | |
| set_log_categories(const std::string &categories="") override | monero::monero_daemon_rpc | virtual |
| set_log_hash_rate(bool is_visible) override | monero::monero_daemon_rpc | virtual |
| set_log_level(int level) override | monero::monero_daemon_rpc | virtual |
| set_outgoing_peer_limit(int limit) override | monero::monero_daemon_rpc | virtual |
| set_peer_ban(const std::shared_ptr< monero_ban > &ban) | monero::monero_daemon | inlinevirtual |
| set_peer_bans(const std::vector< std::shared_ptr< monero_ban > > &bans) override | monero::monero_daemon_rpc | virtual |
| set_poll_period_in_ms(uint64_t period_ms) | monero::monero_daemon_rpc | |
| set_upload_limit(int limit) override | monero::monero_daemon_rpc | virtual |
| start_mining(const std::string &address, boost::optional< uint64_t > num_threads, boost::optional< bool > background_mining, boost::optional< bool > ignore_battery) override | monero::monero_daemon_rpc | virtual |
| stop() override | monero::monero_daemon_rpc | virtual |
| stop_mining() override | monero::monero_daemon_rpc | virtual |
| submit_block(const std::string &block_blob) | monero::monero_daemon | inlinevirtual |
| submit_blocks(const std::vector< std::string > &block_blobs) override | monero::monero_daemon_rpc | virtual |
| submit_tx_hex(const std::string &tx_hex, bool do_not_relay=false) override | monero::monero_daemon_rpc | virtual |
| wait_for_next_block_header() override | monero::monero_daemon_rpc | virtual |
| ~monero_daemon() | monero::monero_daemon | inlinevirtual |
| ~monero_daemon_rpc() override | monero::monero_daemon_rpc |
Friends | |||||||||||||||||
+
|
+ +overridevirtual | +
Add auxiliary proof-of-work to a block template for merge mining, returning an updated block template whose Merkle root commits to the given auxiliary blocks.
+| block_template_blob | is the block template blob to add auxiliary PoW to |
| aux_pow | identifies each auxiliary chain by id and its block's PoW hash |
Reimplemented from monero::monero_daemon.
+ +
+
|
+ +overridevirtual | +
Calculate the proof-of-work hash of a mined block.
+| major_version | is the block's major version |
| height | is the block's height |
| block_blob | is the block's blob to hash |
| seed_hash | is the seed hash used to select the RandomX dataset/cache |
Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Flush the daemon's invalid block and transaction caches.
+| bad_blocks | specifies to flush the bad blocks cache (default false) |
Reimplemented from monero::monero_daemon.
+| std::vector< std::string > monero::monero_daemon_rpc::get_block_hashes | +std::shared_ptr< monero_get_block_hashes_result > monero::monero_daemon_rpc::get_block_hashes | ( | -const std::vector< std::string > & | block_hashes, | -||
| + | const std::vector< std::string > & | block_hashes | ) | - | uint64_t | start_height ) |
| block_hashes | specify block hashes to fetch; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block |
| start_height | is the starting height of block hashes to return |
| block_hashes | is a short chain history; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block which is required, or the request fails. |
Reimplemented from monero::monero_daemon.
+Reimplemented from monero::monero_daemon.
| std::vector< std::shared_ptr< monero_block > > monero::monero_daemon_rpc::get_blocks_by_hash | +std::shared_ptr< monero_get_blocks_by_hash_result > monero::monero_daemon_rpc::get_blocks_by_hash | ( | const std::vector< std::string > & | block_hashes, | - | bool | prune ) | +bool | prune, | + +
| + | + | uint64_t | max_block_count = 0 ) |
| block_hashes | are array of hashes; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block |
| start_height | is the start height to get blocks by hash |
| prune | specifies if returned blocks should be pruned (defaults to false) // TODO: test default |
| block_hashes | is a short chain history; first 10 blocks hash goes sequential, next goes in pow(2,n) offset, like 2, 4, 8, 16, 32, 64 and so on, and the last one is always genesis block |
| start_height | is the start height to resume from; when non-zero, daemon skips the search to find the last block and is used as-is, ignoring block_hashes — except when block_hashes[0] already matches the daemon's tip, which short-circuits to an empty result (see |
| prune | specifies if returned blocks should be pruned (defaults to false) |
| max_block_count | caps how many blocks the daemon returns in one call (0 leaves it to the daemon's own default limit); use this to chunk large ranges instead of taking whatever the daemon hands back |
Reimplemented from monero::monero_daemon.
+Reimplemented from monero::monero_daemon.
+
|
+ +overridevirtual | +
Get the data needed to construct a block template for mining, e.g. for use by a pool that assembles its own block templates.
+Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Get network (bandwidth) statistics since the daemon started.
+Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Get the global output index of each output in a transaction.
+| tx_hash | is the hash of the transaction to get output indices for |
Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Get the ban status of a peer node.
+| address | is the address of the peer node to check, e.g. "1.2.3.4" or "1.2.3.4:18080" |
Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Get public nodes known to the daemon.
+| include_offline | specifies if offline nodes should be included (default false) |
Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Pop (remove) blocks from the top of the blockchain.
+| num_blocks | is the number of blocks to pop |
Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Save (flush) the blockchain to disk.
+ +Reimplemented from monero::monero_daemon.
+ +
+
|
+ +overridevirtual | +
Set the bootstrap daemon used by the daemon to serve requests while it is not fully synced, e.g. a remote node.
+| address | is the bootstrap daemon's address (host:port), "auto" to select a public node automatically, or an empty string to disable the bootstrap daemon |
| username | is the username to authenticate with the bootstrap daemon (optional) |
| password | is the password to authenticate with the bootstrap daemon (optional) |
| proxy | is the proxy used to reach the bootstrap daemon, e.g. a SOCKS proxy (optional) |
Reimplemented from monero::monero_daemon.
+
+
|
+ +overridevirtual | +
Set the daemon's log categories.
+| categories | are the log categories to set, e.g. "*:WARNING,net.p2p:DEBUG" (an empty string resets categories to the default) |
Reimplemented from monero::monero_daemon.
+ +
+
|
+ +overridevirtual | +
Show or hide the mining hash rate in the daemon's console log.
+| is_visible | specifies if the hash rate should be logged |
Reimplemented from monero::monero_daemon.
+ +
+
|
+ +overridevirtual | +
Set the daemon's log level.
+| level | is the log level to set, from 0 (least verbose) to 4 (most verbose) |
Reimplemented from monero::monero_daemon.
+| check_connection(const boost::optional< uint32_t > &timeout_ms=boost::none) | monero::monero_rpc_connection | |
| compare(int p1, int p2) | monero::monero_rpc_connection | static |
| ensure_configured() const (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| from_property_tree(const boost::property_tree::ptree &node) (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | static |
| get_attribute(const std::string &key) const | monero::monero_rpc_connection | |
| invoke_post(const boost::string_ref uri, const std::string &body, const boost::optional< uint32_t > &timeout_ms=boost::none) const (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| is_authenticated() const | monero::monero_rpc_connection | |
| is_connected() const | monero::monero_rpc_connection | |
| is_i2p() const | monero::monero_rpc_connection | |
| is_onion() const | monero::monero_rpc_connection | |
| is_online() const | monero::monero_rpc_connection | |
| m_applied (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | mutableprotected |
| m_attributes (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| m_http_client (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | mutableprotected |
| m_is_authenticated (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| m_is_online (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| m_mutex (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | mutableprotected |
| m_password (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_priority (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_proxy_uri (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_response_time (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_timeout_ms (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_uri (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_username (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_zmq_uri (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| monero_rpc_connection(const std::string &uri="", const std::string &username="", const std::string &password="", const std::string &proxy_uri="", const std::string &zmq_uri="", int priority=0, const boost::optional< uint32_t > &timeout_ms=boost::none) | monero::monero_rpc_connection | |
| monero_rpc_connection(const monero_rpc_connection &rpc) | monero::monero_rpc_connection | |
| send_binary_request(const monero_rpc_request &request, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_json_request(const std::string &path, const std::shared_ptr< serializable_struct > ¶ms=nullptr, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_json_request(const monero_rpc_request &request, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_path_request(const std::string &path, const std::shared_ptr< serializable_struct > ¶ms=nullptr, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_path_request(const monero_rpc_request &request, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_rpc_request(const boost::string_ref uri, const monero_rpc_request &request, monero_rpc_response &response, const boost::optional< uint32_t > &timeout_ms=boost::none, bool binary=false) const (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| serialize() const | monero::serializable_struct | |
| set_attribute(const std::string &key, const std::string &val) | monero::monero_rpc_connection | |
| set_credentials(const std::string &username, const std::string &password) | monero::monero_rpc_connection | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_rpc_connection | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
| deserialize(const std::string &json) (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | static |
| ensure_configured() const (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_rpc_connection > &connection) (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | static |
| get_attribute(const std::string &key) const | monero::monero_rpc_connection | |
| invoke_post(const boost::string_ref uri, const std::string &body, const boost::optional< uint32_t > &timeout_ms=boost::none) const (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| is_authenticated() const | monero::monero_rpc_connection | |
| is_connected() const | monero::monero_rpc_connection | |
| is_i2p() const | monero::monero_rpc_connection | |
| is_onion() const | monero::monero_rpc_connection | |
| is_online() const | monero::monero_rpc_connection | |
| m_applied (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | mutableprotected |
| m_attributes (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| m_http_client (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | mutableprotected |
| m_is_authenticated (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| m_is_online (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| m_mutex (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | mutableprotected |
| m_password (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_priority (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_proxy_uri (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_response_time (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_timeout_ms (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_uri (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_username (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| m_zmq_uri (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | |
| monero_rpc_connection(const std::string &uri="", const std::string &username="", const std::string &password="", const std::string &proxy_uri="", const std::string &zmq_uri="", int priority=0, const boost::optional< uint32_t > &timeout_ms=boost::none) | monero::monero_rpc_connection | |
| monero_rpc_connection(const monero_rpc_connection &rpc) | monero::monero_rpc_connection | |
| send_binary_request(const monero_rpc_request &request, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_json_request(const std::string &path, const std::shared_ptr< serializable_struct > ¶ms=nullptr, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_json_request(const monero_rpc_request &request, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_path_request(const std::string &path, const std::shared_ptr< serializable_struct > ¶ms=nullptr, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_path_request(const monero_rpc_request &request, const boost::optional< uint32_t > &timeout_ms=boost::none) const | monero::monero_rpc_connection | |
| send_rpc_request(const boost::string_ref uri, const monero_rpc_request &request, monero_rpc_response &response, const boost::optional< uint32_t > &timeout_ms=boost::none, bool binary=false) const (defined in monero::monero_rpc_connection) | monero::monero_rpc_connection | protected |
| serialize() const | monero::serializable_struct | |
| set_attribute(const std::string &key, const std::string &val) | monero::monero_rpc_connection | |
| set_credentials(const std::string &username, const std::string &password) | monero::monero_rpc_connection | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_rpc_connection | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
Static Public Member Functions | |
| -static std::shared_ptr< monero_rpc_connection > | from_property_tree (const boost::property_tree::ptree &node) |
| +static void | from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_rpc_connection > &connection) |
| +static std::shared_ptr< monero_rpc_connection > | deserialize (const std::string &json) |
| static bool | compare (int p1, int p2) |
Static Public Member Functions |
+
|
+ +inlineoverridevirtual | +
Check if the wallet is closed.
+ +Reimplemented from monero::monero_wallet.
+This is the complete list of members for monero::monero_account, including all inherited members.
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_account > &account) (defined in monero::monero_account) | monero::monero_account | static |
| m_balance (defined in monero::monero_account) | monero::monero_account | |
| m_index (defined in monero::monero_account) | monero::monero_account | |
| m_primary_address (defined in monero::monero_account) | monero::monero_account | |
| m_subaddresses (defined in monero::monero_account) | monero::monero_account | |
| m_tag (defined in monero::monero_account) | monero::monero_account | |
| m_unlocked_balance (defined in monero::monero_account) | monero::monero_account | |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const | monero::monero_account | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
| deserialize(const std::string &json) (defined in monero::monero_account) | monero::monero_account | static |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_account > &account) (defined in monero::monero_account) | monero::monero_account | static |
| m_balance (defined in monero::monero_account) | monero::monero_account | |
| m_index (defined in monero::monero_account) | monero::monero_account | |
| m_primary_address (defined in monero::monero_account) | monero::monero_account | |
| m_subaddresses (defined in monero::monero_account) | monero::monero_account | |
| m_tag (defined in monero::monero_account) | monero::monero_account | |
| m_unlocked_balance (defined in monero::monero_account) | monero::monero_account | |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const | monero::monero_account | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
Public Attributes | ||
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_account_tag > &account_tag) (defined in monero::monero_account_tag) | monero::monero_account_tag | static |
| m_account_indices (defined in monero::monero_account_tag) | monero::monero_account_tag | |
| m_label (defined in monero::monero_account_tag) | monero::monero_account_tag | |
| m_tag (defined in monero::monero_account_tag) | monero::monero_account_tag | |
| monero_account_tag() (defined in monero::monero_account_tag) | monero::monero_account_tag | inline |
| monero_account_tag(const std::string &tag, const std::string &label) (defined in monero::monero_account_tag) | monero::monero_account_tag | inline |
| monero_account_tag(const std::string &tag, const std::string &label, const std::vector< uint32_t > &account_indices) (defined in monero::monero_account_tag) | monero::monero_account_tag | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_account_tag | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
| deserialize(const std::string &json) (defined in monero::monero_account_tag) | monero::monero_account_tag | static |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_account_tag > &account_tag) (defined in monero::monero_account_tag) | monero::monero_account_tag | static |
| m_account_indices (defined in monero::monero_account_tag) | monero::monero_account_tag | |
| m_label (defined in monero::monero_account_tag) | monero::monero_account_tag | |
| m_tag (defined in monero::monero_account_tag) | monero::monero_account_tag | |
| monero_account_tag() (defined in monero::monero_account_tag) | monero::monero_account_tag | inline |
| monero_account_tag(const std::string &tag, const std::string &label) (defined in monero::monero_account_tag) | monero::monero_account_tag | inline |
| monero_account_tag(const std::string &tag, const std::string &label, const std::vector< uint32_t > &account_indices) (defined in monero::monero_account_tag) | monero::monero_account_tag | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_account_tag | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
Public Attributes | |||||||
|
+ Monero C++ Library
+
+ |
+
This is the complete list of members for monero::monero_add_aux_pow_params, including all inherited members.
+| m_aux_pow (defined in monero::monero_add_aux_pow_params) | monero::monero_add_aux_pow_params | |
| m_blocktemplate_blob (defined in monero::monero_add_aux_pow_params) | monero::monero_add_aux_pow_params | |
| monero_add_aux_pow_params(const std::string &blocktemplate_blob, const std::vector< std::shared_ptr< monero_auxiliary_pow > > &aux_pow) (defined in monero::monero_add_aux_pow_params) | monero::monero_add_aux_pow_params | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_add_aux_pow_params | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
|
+ Monero C++ Library
+
+ |
+
+
++Public Member Functions | |
| + | monero_add_aux_pow_params (const std::string &blocktemplate_blob, const std::vector< std::shared_ptr< monero_auxiliary_pow > > &aux_pow) |
| 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 | |
| +boost::optional< std::string > | m_blocktemplate_blob |
| +std::vector< std::shared_ptr< monero_auxiliary_pow > > | m_aux_pow |
+
|
+ +overridevirtual | +
Converts the struct to a rapidjson Value.
+| allocator | is the rapidjson document allocator |
Implements monero::serializable_struct.
+ +|
+ Monero C++ Library
+
+ |
+
This is the complete list of members for monero::monero_add_auxiliary_pow_result, including all inherited members.
+|
+ Monero C++ Library
+
+ |
+
#include <monero_daemon_model.h>
+
++Public Member Functions | |
| rapidjson::Value | to_rapidjson_val (rapidjson::Document::AllocatorType &allocator) const override |
Public Member Functions inherited from monero::monero_rpc_payment_info | |
| 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_add_auxiliary_pow_result > &result) |
| +static std::shared_ptr< monero_add_auxiliary_pow_result > | deserialize (const std::string &json) |
Static Public Member Functions inherited from monero::monero_rpc_payment_info | |
| +static void | from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_rpc_payment_info > &rpc_payment_info) |
| +static std::shared_ptr< monero_rpc_payment_info > | deserialize (const std::string &json) |
+Public Attributes | |
| +boost::optional< std::string > | m_block_template_blob |
| +boost::optional< std::string > | m_block_hashing_blob |
| +boost::optional< std::string > | m_merkle_root |
| +boost::optional< uint32_t > | m_merkle_tree_depth |
| +std::vector< std::shared_ptr< monero_auxiliary_pow > > | m_aux_pow |
Public Attributes inherited from monero::monero_rpc_payment_info | |
| +boost::optional< uint64_t > | m_credits |
| +boost::optional< std::string > | m_top_block_hash |
Result of adding auxiliary proof-of-work to a block template for merge mining.
+
+
|
+ +overridevirtual | +
Converts the struct to a rapidjson Value.
+| allocator | is the rapidjson document allocator |
Implements monero::serializable_struct.
+ +| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_address_book_entry > &entry) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | static |
| m_address (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| m_description (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| m_index (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| m_payment_id (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| monero_address_book_entry() (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | inline |
| monero_address_book_entry(uint64_t index, const std::string &address, const std::string &description) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | inline |
| monero_address_book_entry(uint64_t index, const std::string &address, const std::string &description, const std::string &payment_id) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const | monero::monero_address_book_entry | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
| deserialize(const std::string &json) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | static |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_address_book_entry > &entry) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | static |
| m_address (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| m_description (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| m_index (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| m_payment_id (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | |
| monero_address_book_entry() (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | inline |
| monero_address_book_entry(uint64_t index, const std::string &address, const std::string &description) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | inline |
| monero_address_book_entry(uint64_t index, const std::string &address, const std::string &description, const std::string &payment_id) (defined in monero::monero_address_book_entry) | monero::monero_address_book_entry | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const | monero::monero_address_book_entry | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
Public Attributes | ||
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_alt_chain > &alt_chain) (defined in monero::monero_alt_chain) | monero::monero_alt_chain | static |
| m_block_hashes (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_difficulty_high (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_difficulty_low (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_height (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_length (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_main_chain_parent_block_hash (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_alt_chain | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
| deserialize(const std::string &json) (defined in monero::monero_alt_chain) | monero::monero_alt_chain | static |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_alt_chain > &alt_chain) (defined in monero::monero_alt_chain) | monero::monero_alt_chain | static |
| m_block_hashes (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_difficulty_high (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_difficulty_low (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_height (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_length (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| m_main_chain_parent_block_hash (defined in monero::monero_alt_chain) | monero::monero_alt_chain | |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_alt_chain | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
Public Attributes | |||||||
|
+ Monero C++ Library
+
+ |
+
This is the complete list of members for monero::monero_auxiliary_pow, including all inherited members.
+| deserialize(const std::string &json) (defined in monero::monero_auxiliary_pow) | monero::monero_auxiliary_pow | static |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_auxiliary_pow > &aux_pow) (defined in monero::monero_auxiliary_pow) | monero::monero_auxiliary_pow | static |
| m_hash (defined in monero::monero_auxiliary_pow) | monero::monero_auxiliary_pow | |
| m_id (defined in monero::monero_auxiliary_pow) | monero::monero_auxiliary_pow | |
| monero_auxiliary_pow() (defined in monero::monero_auxiliary_pow) | monero::monero_auxiliary_pow | inline |
| monero_auxiliary_pow(const std::string &id, const std::string &hash) (defined in monero::monero_auxiliary_pow) | monero::monero_auxiliary_pow | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_auxiliary_pow | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
|
+ Monero C++ Library
+
+ |
+
#include <monero_daemon_model.h>
+
++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_pow > | deserialize (const std::string &json) |
+Public Attributes | |
| +boost::optional< std::string > | m_id |
| +boost::optional< std::string > | m_hash |
Identifies an auxiliary chain's block by id and proof-of-work hash for merge mining.
+
+
|
+ +overridevirtual | +
Converts the struct to a rapidjson Value.
+| allocator | is the rapidjson document allocator |
Implements monero::serializable_struct.
+ +This is the complete list of members for monero::monero_ban, including all inherited members.
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_ban > &ban) (defined in monero::monero_ban) | monero::monero_ban | static |
| m_host (defined in monero::monero_ban) | monero::monero_ban | |
| m_ip (defined in monero::monero_ban) | monero::monero_ban | |
| m_is_banned (defined in monero::monero_ban) | monero::monero_ban | |
| m_seconds (defined in monero::monero_ban) | monero::monero_ban | |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_ban | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
| deserialize(const std::string &json) (defined in monero::monero_ban) | monero::monero_ban | static |
| from_property_tree(const boost::property_tree::ptree &node, const std::shared_ptr< monero_ban > &ban) (defined in monero::monero_ban) | monero::monero_ban | static |
| m_host (defined in monero::monero_ban) | monero::monero_ban | |
| m_ip (defined in monero::monero_ban) | monero::monero_ban | |
| m_is_banned (defined in monero::monero_ban) | monero::monero_ban | |
| m_seconds (defined in monero::monero_ban) | monero::monero_ban | |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_ban | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
Public Attributes | |||||||
|
+ Monero C++ Library
+
+ |
+
This is the complete list of members for monero::monero_banned_params, including all inherited members.
+| m_address (defined in monero::monero_banned_params) | monero::monero_banned_params | |
| monero_banned_params(const std::string &address) (defined in monero::monero_banned_params) | monero::monero_banned_params | inline |
| serialize() const | monero::serializable_struct | |
| to_rapidjson_val(rapidjson::Document::AllocatorType &allocator) const override | monero::monero_banned_params | virtual |
| ~serializable_struct()=default (defined in monero::serializable_struct) | monero::serializable_struct | virtual |
|
+ Monero C++ Library
+
+ |
+
+
++Public Member Functions | |
| + | monero_banned_params (const std::string &address) |
| 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 | |
| +boost::optional< std::string > | m_address |
+
|
+ +overridevirtual | +
Converts the struct to a rapidjson Value.
+| allocator | is the rapidjson document allocator |
Implements monero::serializable_struct.
+ ++Static Public Member Functions | |
| +static void | from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_block > &block) |
| +static std::shared_ptr< monero_block > | deserialize (const std::string &json) |
Static Public Member Functions inherited from monero::monero_block_header | |
| +static void | from_property_tree (const boost::property_tree::ptree &node, const std::shared_ptr< monero_block_header > &header) |
| +static std::shared_ptr< monero_block_header > | deserialize (const std::string &json) |