From 42a7a4dd320f002457843b4418314f43a70c0c8f Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 26 Feb 2020 12:37:28 +0000 Subject: daemon: auto public nodes - cache and prioritize most stable nodes --- src/rpc/core_rpc_server.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpc/core_rpc_server.h') 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 get_random_public_node(); + std::map 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 &credentials); enum invoke_http_mode { JON, BIN, JON_RPC }; -- cgit v1.2.3