mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 20:32:19 -04:00
fix serialization being different on mac
On Mac, size_t is a distinct type from uint64_t, and some types (in wallet cache as well as cold/hot wallet transfer data) use pairs/containers with size_t as fields. Mac would save those as full size, while other platforms would save them as varints. Might apply to other platforms where the types are distinct. There's a nasty hack for backward compatibility, which can go after a couple forks.
This commit is contained in:
parent
b8f3e44a3f
commit
f9b5b521e8
9 changed files with 64 additions and 27 deletions
|
@ -2701,7 +2701,7 @@ namespace tools
|
|||
if (!m_wallet) return not_open(er);
|
||||
try
|
||||
{
|
||||
std::pair<size_t, std::vector<std::pair<crypto::key_image, crypto::signature>>> ski = m_wallet->export_key_images(req.all);
|
||||
std::pair<uint64_t, std::vector<std::pair<crypto::key_image, crypto::signature>>> ski = m_wallet->export_key_images(req.all);
|
||||
res.offset = ski.first;
|
||||
res.signed_key_images.resize(ski.second.size());
|
||||
for (size_t n = 0; n < ski.second.size(); ++n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue