aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-02-20 00:59:47 +0200
committerRiccardo Spagni <ric@spagni.net>2015-02-20 00:59:52 +0200
commite72899280363968ee60670cdb0fa2fe008eb9e79 (patch)
tree83aeb7c6f2808e0692d83e371122286fc3d0db53 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #221 (diff)
parentadded tx size to incoming_transfers RPC Call (diff)
downloadmonero-e72899280363968ee60670cdb0fa2fe008eb9e79.tar.xz
Merge pull request #229
7b01a07 added tx size to incoming_transfers RPC Call (Riccardo Spagni)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index f856e5b8a..e7940d57b 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -431,11 +431,13 @@ namespace tools
{
transfers_found = true;
}
+ auto txBlob = t_serializable_object_to_blob(td.m_tx);
wallet_rpc::transfer_details rpc_transfers;
rpc_transfers.amount = td.amount();
rpc_transfers.spent = td.m_spent;
rpc_transfers.global_index = td.m_global_output_index;
rpc_transfers.tx_hash = boost::lexical_cast<std::string>(cryptonote::get_transaction_hash(td.m_tx));
+ rpc_transfers.tx_size = txBlob.size();
res.transfers.push_back(rpc_transfers);
}
}