Skip to content

Commit

Permalink
Update serialization.h
Browse files Browse the repository at this point in the history
1. Added VARINT_FIELD_N(t,f) macro required for tx_extra_merge_mining_tag serialization.
  • Loading branch information
1 parent 9b2d1bc commit c0cf78a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/serialization/serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit c0cf78a

Please sign in to comment.