aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.h
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-02-26 12:37:28 +0000
committerxiphon <xiphon@protonmail.com>2020-02-28 08:06:43 +0000
commit42a7a4dd320f002457843b4418314f43a70c0c8f (patch)
tree9ed6650745da931923f93ca16f12fc2043b2bda0 /src/rpc/core_rpc_server.h
parentMerge pull request #6048 (diff)
downloadmonero-42a7a4dd320f002457843b4418314f43a70c0c8f.tar.xz
daemon: auto public nodes - cache and prioritize most stable nodes
Diffstat (limited to 'src/rpc/core_rpc_server.h')
-rw-r--r--src/rpc/core_rpc_server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.h b/src/rpc/core_rpc_server.h
index 23c611470..218e92ca8 100644
--- a/src/rpc/core_rpc_server.h
+++ b/src/rpc/core_rpc_server.h
@@ -265,7 +265,7 @@ private:
//utils
uint64_t get_block_reward(const block& blk);
bool fill_block_header_response(const block& blk, bool orphan_status, uint64_t height, const crypto::hash& hash, block_header_response& response, bool fill_pow_hash);
- boost::optional<std::string> get_random_public_node();
+ std::map<std::string, bool> get_public_nodes(uint32_t credits_per_hash_threshold = 0);
bool set_bootstrap_daemon(const std::string &address, const std::string &username_password);
bool set_bootstrap_daemon(const std::string &address, const boost::optional<epee::net_utils::http::login> &credentials);
enum invoke_http_mode { JON, BIN, JON_RPC };