diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-01-12 18:24:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-03-05 23:42:33 +0000 |
commit | f9b5b521e82b9dc08325bc65f25f8e4e446270fc (patch) | |
tree | 4da9913a90cae3b0f2011254466c2a62ee1ca3ae /src/serialization/json_archive.h | |
parent | Merge pull request #7381 (diff) | |
download | monero-f9b5b521e82b9dc08325bc65f25f8e4e446270fc.tar.xz |
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.
Diffstat (limited to 'src/serialization/json_archive.h')
-rw-r--r-- | src/serialization/json_archive.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/serialization/json_archive.h b/src/serialization/json_archive.h index 50dd5bbd0..3f98b5101 100644 --- a/src/serialization/json_archive.h +++ b/src/serialization/json_archive.h @@ -84,6 +84,8 @@ struct json_archive_base void end_variant() { end_object(); } Stream &stream() { return stream_; } + bool varint_bug_backward_compatibility_enabled() const { return false; } + protected: void make_indent() { |