Clang formatted
This commit is contained in:
parent
ce216b4646
commit
9cc4557e8a
3 changed files with 15 additions and 15 deletions
|
|
@ -14,7 +14,7 @@ namespace graphene { namespace peerplays_sidechain {
|
||||||
|
|
||||||
class hive_node_rpc_client : public rpc_client {
|
class hive_node_rpc_client : public rpc_client {
|
||||||
public:
|
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 account_history_api_get_transaction(std::string transaction_id);
|
||||||
std::string block_api_get_block(uint32_t block_number);
|
std::string block_api_get_block(uint32_t block_number);
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
namespace graphene { namespace peerplays_sidechain {
|
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) {
|
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"))
|
if (options.count("hive-node-rpc-url"))
|
||||||
node_rpc_url = options.at("hive-node-rpc-url").as<std::string>();
|
node_rpc_url = options.at("hive-node-rpc-url").as<std::string>();
|
||||||
|
|
||||||
// if (options.count("hive-node-rpc-port"))
|
// if (options.count("hive-node-rpc-port"))
|
||||||
// node_rpc_port = options.at("hive-node-rpc-port").as<uint32_t>();
|
// node_rpc_port = options.at("hive-node-rpc-port").as<uint32_t>();
|
||||||
// else
|
// else
|
||||||
// node_rpc_port = 0;
|
// node_rpc_port = 0;
|
||||||
|
|
||||||
if (options.count("hive-node-rpc-user")) {
|
if (options.count("hive-node-rpc-user")) {
|
||||||
node_rpc_user = options.at("hive-node-rpc-user").as<std::string>();
|
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();
|
std::string chain_id_str = node_rpc_client->get_chain_id();
|
||||||
if (chain_id_str.empty()) {
|
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));
|
elog("No Hive node running at ${url}", ("url", node_rpc_url));
|
||||||
FC_ASSERT(false);
|
FC_ASSERT(false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue