Clang formatted
This commit is contained in:
parent
ce216b4646
commit
9cc4557e8a
3 changed files with 15 additions and 15 deletions
|
|
@ -712,14 +712,14 @@ http_call::http_call(const url_data &url, const std::string &method, const std::
|
|||
m_context = 0;
|
||||
}
|
||||
|
||||
if (url.port)
|
||||
m_port_default = url.port;
|
||||
else {
|
||||
if (url.schema_type == url_schema_type::https)
|
||||
m_port_default = https_port;
|
||||
else
|
||||
m_port_default = http_port;
|
||||
}
|
||||
if (url.port)
|
||||
m_port_default = url.port;
|
||||
else {
|
||||
if (url.schema_type == url_schema_type::https)
|
||||
m_port_default = https_port;
|
||||
else
|
||||
m_port_default = http_port;
|
||||
}
|
||||
|
||||
m_port = m_port_default;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace graphene { namespace peerplays_sidechain {
|
|||
|
||||
class hive_node_rpc_client : public rpc_client {
|
||||
public:
|
||||
hive_node_rpc_client(const std::string & url, const std::string & user_name, const std::string & password, bool debug_rpc_calls);
|
||||
hive_node_rpc_client(const std::string &url, const std::string &user_name, const std::string &password, bool debug_rpc_calls);
|
||||
|
||||
std::string account_history_api_get_transaction(std::string transaction_id);
|
||||
std::string block_api_get_block(uint32_t block_number);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
namespace graphene { namespace peerplays_sidechain {
|
||||
|
||||
hive_node_rpc_client::hive_node_rpc_client(const std::string & url, const std::string & user_name, const std::string & password, bool debug_rpc_calls) :
|
||||
hive_node_rpc_client::hive_node_rpc_client(const std::string &url, const std::string &user_name, const std::string &password, bool debug_rpc_calls) :
|
||||
rpc_client(url, user_name, password, debug_rpc_calls) {
|
||||
}
|
||||
|
||||
|
|
@ -125,10 +125,10 @@ sidechain_net_handler_hive::sidechain_net_handler_hive(peerplays_sidechain_plugi
|
|||
if (options.count("hive-node-rpc-url"))
|
||||
node_rpc_url = options.at("hive-node-rpc-url").as<std::string>();
|
||||
|
||||
// if (options.count("hive-node-rpc-port"))
|
||||
// node_rpc_port = options.at("hive-node-rpc-port").as<uint32_t>();
|
||||
// else
|
||||
// node_rpc_port = 0;
|
||||
// if (options.count("hive-node-rpc-port"))
|
||||
// node_rpc_port = options.at("hive-node-rpc-port").as<uint32_t>();
|
||||
// else
|
||||
// node_rpc_port = 0;
|
||||
|
||||
if (options.count("hive-node-rpc-user")) {
|
||||
node_rpc_user = options.at("hive-node-rpc-user").as<std::string>();
|
||||
|
|
@ -157,7 +157,7 @@ sidechain_net_handler_hive::sidechain_net_handler_hive(peerplays_sidechain_plugi
|
|||
|
||||
std::string chain_id_str = node_rpc_client->get_chain_id();
|
||||
if (chain_id_str.empty()) {
|
||||
// elog("No Hive node running at ${url} or wrong rpc port: ${port}", ("url", node_rpc_url)("port", node_rpc_port));
|
||||
// elog("No Hive node running at ${url} or wrong rpc port: ${port}", ("url", node_rpc_url)("port", node_rpc_port));
|
||||
elog("No Hive node running at ${url}", ("url", node_rpc_url));
|
||||
FC_ASSERT(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue