From eba3beb06725ce5121fb2ecb04d6ba6b7d0e5eb7 Mon Sep 17 00:00:00 2001 From: Srdjan Obucina Date: Sun, 22 Mar 2020 06:11:22 +0100 Subject: [PATCH] Decrease logging --- .../sidechain_net_handler_bitcoin.hpp | 1 - .../peerplays_sidechain_plugin.cpp | 2 -- .../sidechain_net_handler_bitcoin.cpp | 23 +++++++------------ 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp b/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp index 1df76375..289808ac 100644 --- a/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp +++ b/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp @@ -36,7 +36,6 @@ public: std::vector listunspent_by_address_and_amount(const std::string &address, double transfer_amount); std::string loadwallet(const std::string &filename); bool sendrawtransaction(const std::string &tx_hex); - std::string signrawtransactionwithkey(const std::string &tx_hash, const std::string &private_key); std::string signrawtransactionwithwallet(const std::string &tx_hash); std::string unloadwallet(const std::string &filename); std::string walletlock(); diff --git a/libraries/plugins/peerplays_sidechain/peerplays_sidechain_plugin.cpp b/libraries/plugins/peerplays_sidechain/peerplays_sidechain_plugin.cpp index 2cbcad61..58ce8b62 100644 --- a/libraries/plugins/peerplays_sidechain/peerplays_sidechain_plugin.cpp +++ b/libraries/plugins/peerplays_sidechain/peerplays_sidechain_plugin.cpp @@ -471,11 +471,9 @@ void peerplays_sidechain_plugin_impl::approve_proposals() { } } - ilog("=================================================="); ilog("=================================================="); ilog("Proposal not approved ${proposal}", ("proposal", proposal)); ilog("=================================================="); - ilog("=================================================="); } } diff --git a/libraries/plugins/peerplays_sidechain/sidechain_net_handler_bitcoin.cpp b/libraries/plugins/peerplays_sidechain/sidechain_net_handler_bitcoin.cpp index 52354e9f..17f8da7e 100644 --- a/libraries/plugins/peerplays_sidechain/sidechain_net_handler_bitcoin.cpp +++ b/libraries/plugins/peerplays_sidechain/sidechain_net_handler_bitcoin.cpp @@ -87,7 +87,7 @@ std::string bitcoin_rpc_client::createpsbt(const std::vector &ins, co } body += std::string("]] }"); - const auto reply = send_post_request(body); + const auto reply = send_post_request(body, true); if (reply.body.empty()) { wlog("Bitcoin RPC call ${function} failed", ("function", __FUNCTION__)); @@ -131,7 +131,7 @@ std::string bitcoin_rpc_client::createrawtransaction(const std::vector("address"); if (prev_pw_address == active_pw_address) { - elog("BTC Primary wallet funds not transfered from ${prev_sw} to ${active_sw}", ("prev_sw", *prev_sw)("active_sw", *active_sw)); + elog("BTC previous and new primary wallet addresses are same. No funds moving needed [from ${prev_sw} to ${active_sw}]", ("prev_sw", prev_sw->id)("active_sw", active_sw->id)); return; } @@ -1196,7 +1191,6 @@ std::string sidechain_net_handler_bitcoin::sign_transaction_raw(const std::strin bool complete_raw = json_res.get("complete"); if (complete_raw) { - std::string decoded_raw = bitcoin_client->decoderawtransaction(new_tx_raw); complete = true; return new_tx_raw; } @@ -1245,7 +1239,6 @@ std::string sidechain_net_handler_bitcoin::sign_transaction_psbt(const std::stri bool complete_raw = json_res.get("complete"); if (complete_raw) { - std::string decoded_raw = bitcoin_client->decoderawtransaction(new_tx_raw); complete = true; return new_tx_raw; }