aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/serialization.h
diff options
context:
space:
mode:
authorNoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com>2014-05-13 16:10:58 -0700
committerNoodleDoodleNoodleDoodleNoodleDoodleNoo <xeven77@outlook.com>2014-05-13 16:10:58 -0700
commitc0cf78a1d157605ab1a937d022ba03e130b1bca3 (patch)
tree010bd9652020d0e5b9918bd3ec040fd8c994eb2d /src/serialization/serialization.h
parent20s timeout for zone117x pool (diff)
downloadmonero-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 'src/serialization/serialization.h')
-rw-r--r--src/serialization/serialization.h7
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
{