mirror of
https://github.com/monero-project/monero.git
synced 2025-06-16 08:49:19 -04:00
added tx size to incoming_transfers RPC Call
This commit is contained in:
parent
3ece1584f0
commit
7b01a076b9
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue