diff --git a/src/wallet/wallet_public_structs_defs.h b/src/wallet/wallet_public_structs_defs.h index aaba1359..6bebcd37 100644 --- a/src/wallet/wallet_public_structs_defs.h +++ b/src/wallet/wallet_public_structs_defs.h @@ -335,10 +335,12 @@ namespace wallet_public { std::string tx_hash; std::string tx_unsigned_hex; // for cold-signing process + uint64_t tx_size; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(tx_hash) KV_SERIALIZE(tx_unsigned_hex) + KV_SERIALIZE(tx_size) END_KV_SERIALIZE_MAP() }; }; diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 6d3987da..698a181a 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -300,6 +300,7 @@ namespace tools else { res.tx_hash = epee::string_tools::pod_to_hex(currency::get_transaction_hash(tx)); + res.tx_size = get_object_blobsize(tx); } return true; }