1
0
Fork 0
forked from lthn/blockchain

added missing size of transaction on transfer response

This commit is contained in:
cryptozoidberg 2020-04-03 21:43:24 +02:00
parent 17e90b219f
commit e1c9e79c06
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 3 additions and 0 deletions

View file

@ -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()
};
};

View file

@ -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;
}