diff options
author | NoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com> | 2014-05-13 16:10:58 -0700 |
---|---|---|
committer | NoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com> | 2014-05-13 16:10:58 -0700 |
commit | c0cf78a1d157605ab1a937d022ba03e130b1bca3 (patch) | |
tree | 010bd9652020d0e5b9918bd3ec040fd8c994eb2d /src/serialization/serialization.h | |
parent | 20s timeout for zone117x pool (diff) | |
download | monero-c0cf78a1d157605ab1a937d022ba03e130b1bca3.tar.xz |
Update serialization.h
1. Added VARINT_FIELD_N(t,f) macro required for tx_extra_merge_mining_tag serialization.
Diffstat (limited to '')
-rw-r--r-- | src/serialization/serialization.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/serialization/serialization.h b/src/serialization/serialization.h index 2d78baf3a..2e69ea0a3 100644 --- a/src/serialization/serialization.h +++ b/src/serialization/serialization.h @@ -93,7 +93,12 @@ inline bool do_serialize(Archive &ar, T &v) ar.serialize_varint(f); \ if (!ar.stream().good()) return false; \ } while(0); - +#define VARINT_FIELD_N(t, f) \ + do { \ + ar.tag(t); \ + ar.serialize_varint(f); \ + if (!ar.stream().good()) return false; \ + } while(0); namespace serialization { namespace detail { |