From 260e20d91f5ce6f9ab9940df6070259786f34178 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 24 Mar 2022 05:37:58 +0200 Subject: [PATCH] fixed another tor-related bug in simplewallet --- src/wallet/wallet2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 62ad07c3..2dd9c27b 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -4621,12 +4621,12 @@ void wallet2::send_transaction_to_network(const transaction& tx) currency::NOTIFY_OR_INVOKE_NEW_TRANSACTIONS::request p2p_req = AUTO_VAL_INIT(p2p_req); currency::NOTIFY_OR_INVOKE_NEW_TRANSACTIONS::response p2p_rsp = AUTO_VAL_INIT(p2p_rsp); p2p_req.txs.push_back(t_serializable_object_to_blob(tx)); - //std::string blob; - //epee::serialization::store_t_to_binary(p2p_req, blob); epee::net_utils::invoke_remote_command2(NOTIFY_OR_INVOKE_NEW_TRANSACTIONS::ID, p2p_req, p2p_rsp, p2p_client); - //p2p_client.invoke(NOTIFY_OR_INVOKE_NEW_TRANSACTIONS::ID, blob,m ); p2p_client.disconnect(); - + if (p2p_rsp.code == API_RETURN_CODE_OK) + { + break; + } //checking if transaction got relayed to other nodes and //return; }