SON conn. pool
This commit is contained in:
parent
ca32d13192
commit
87c2f5a10f
1 changed files with 0 additions and 5 deletions
|
|
@ -695,7 +695,6 @@ bool sidechain_net_handler_hive::process_withdrawal(const son_wallet_withdraw_ob
|
|||
t_op.amount.symbol = symbol;
|
||||
t_op.memo = "";
|
||||
|
||||
hive_rpc_client *rpc_client = get_active_rpc_client();
|
||||
const std::string block_id_str = rpc_client->get_head_block_id();
|
||||
hive::block_id_type head_block_id(block_id_str);
|
||||
|
||||
|
|
@ -755,7 +754,6 @@ std::string sidechain_net_handler_hive::process_sidechain_transaction(const side
|
|||
hive::signed_transaction htrx;
|
||||
fc::raw::unpack(ss_trx, htrx, 1000);
|
||||
|
||||
hive_rpc_client *rpc_client = get_active_rpc_client();
|
||||
const std::string chain_id_str = rpc_client->get_chain_id();
|
||||
const hive::chain_id_type chain_id(chain_id_str);
|
||||
|
||||
|
|
@ -784,7 +782,6 @@ std::string sidechain_net_handler_hive::send_sidechain_transaction(const sidecha
|
|||
}
|
||||
|
||||
std::string params = fc::json::to_string(htrx);
|
||||
hive_rpc_client *rpc_client = get_active_rpc_client();
|
||||
rpc_client->network_broadcast_api_broadcast_transaction(params);
|
||||
|
||||
return htrx.id().str();
|
||||
|
|
@ -800,7 +797,6 @@ bool sidechain_net_handler_hive::settle_sidechain_transaction(const sidechain_tr
|
|||
return false;
|
||||
}
|
||||
|
||||
hive_rpc_client *rpc_client = get_active_rpc_client();
|
||||
const std::string tx_str = rpc_client->account_history_api_get_transaction(sto.sidechain_transaction);
|
||||
if (tx_str != "") {
|
||||
|
||||
|
|
@ -853,7 +849,6 @@ void sidechain_net_handler_hive::schedule_hive_listener() {
|
|||
void sidechain_net_handler_hive::hive_listener_loop() {
|
||||
schedule_hive_listener();
|
||||
|
||||
hive_rpc_client *rpc_client = get_active_rpc_client();
|
||||
const std::string reply = rpc_client->database_api_get_dynamic_global_properties();
|
||||
if (!reply.empty()) {
|
||||
std::stringstream ss(reply);
|
||||
|
|
|
|||
Loading…
Reference in a new issue