From c0cf78a1d157605ab1a937d022ba03e130b1bca3 Mon Sep 17 00:00:00 2001 From: NoodleDoodleNoodleDoodleNoodleDoodleNoo Date: Tue, 13 May 2014 16:10:58 -0700 Subject: [PATCH] Update serialization.h 1. Added VARINT_FIELD_N(t,f) macro required for tx_extra_merge_mining_tag serialization. --- src/serialization/serialization.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {