Update sidechain_net_handler_hive.cpp
Clang formatted
This commit is contained in:
parent
b75a8fe6a8
commit
f638caa8fa
1 changed files with 10 additions and 11 deletions
|
|
@ -122,20 +122,19 @@ sidechain_net_handler_hive::sidechain_net_handler_hive(peerplays_sidechain_plugi
|
||||||
debug_rpc_calls = options.at("debug-rpc-calls").as<bool>();
|
debug_rpc_calls = options.at("debug-rpc-calls").as<bool>();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((options.count("hive-node-url") > 0) && (options.count("hive-node-ip") > 0))
|
if ((options.count("hive-node-url") > 0) && (options.count("hive-node-ip") > 0))
|
||||||
FC_THROW("both keys are present: hive-node-url and hive-node-ip");
|
FC_THROW("both keys are present: hive-node-url and hive-node-ip");
|
||||||
|
|
||||||
if (options.count("hive-node-ip"))
|
if (options.count("hive-node-ip"))
|
||||||
node_ip = options.at("hive-node-ip").as<std::string>();
|
node_ip = options.at("hive-node-ip").as<std::string>();
|
||||||
|
|
||||||
if (options.count("hive-node-url"))
|
if (options.count("hive-node-url"))
|
||||||
node_ip = options.at("hive-node-url").as<std::string>();
|
node_ip = options.at("hive-node-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>();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue