aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-03-20 21:27:28 +0200
committerRiccardo Spagni <ric@spagni.net>2016-03-20 21:27:28 +0200
commit9b10e9cc751e598b210a02f0ef1647586bb3d541 (patch)
treee208502732d94b76bc6b8cada0aaebdf39b6fbd3 /src
parentMerge pull request #734 (diff)
parentrpc: fix print_tx in command line mode (diff)
downloadmonero-9b10e9cc751e598b210a02f0ef1647586bb3d541.tar.xz
Merge pull request #735
d2aa427 rpc: fix print_tx in command line mode (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 13cc5fadc..b57c60948 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -559,6 +559,7 @@ bool t_rpc_command_executor::print_transaction(crypto::hash transaction_hash) {
std::string fail_message = "Problem fetching transaction";
+ req.txs_hashes.push_back(epee::string_tools::pod_to_hex(transaction_hash));
if (m_is_rpc)
{
if (!m_rpc_client->rpc_request(req, res, "/gettransactions", fail_message.c_str()))
@@ -568,7 +569,6 @@ bool t_rpc_command_executor::print_transaction(crypto::hash transaction_hash) {
}
else
{
- req.txs_hashes.push_back(epee::string_tools::pod_to_hex(transaction_hash));
if (!m_rpc_server->on_get_transactions(req, res) || res.status != CORE_RPC_STATUS_OK)
{
tools::fail_msg_writer() << fail_message.c_str();