mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 04:38:53 +00:00
rpc: fix print_tx in command line mode
It was only filling the input in non rpc mode
This commit is contained in:
parent
d7fb03fc97
commit
d2aa427c78
@ -558,6 +558,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()))
|
||||
@ -567,7 +568,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();
|
||||
|
Loading…
Reference in New Issue
Block a user