From c018cc89ae6f6834a33535357253ae29d5594e0f Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 30 Apr 2020 10:31:50 +0300 Subject: [PATCH] extra_alias_entry serialization --- .../currency_boost_serialization.h | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/currency_core/currency_boost_serialization.h b/src/currency_core/currency_boost_serialization.h index e940ec11..5e39113c 100644 --- a/src/currency_core/currency_boost_serialization.h +++ b/src/currency_core/currency_boost_serialization.h @@ -157,14 +157,6 @@ namespace boost a & x.m_sign; } - - template - inline void serialize(Archive &a, currency::signed_parts &x, const boost::serialization::version_type ver) - { - a & x.n_outs; - a & x.n_extras; - } - template inline void serialize(Archive &a, currency::extra_alias_entry &x, const boost::serialization::version_type ver) { @@ -172,6 +164,29 @@ namespace boost a & static_cast(x); } + template + inline void serialize(Archive &a, currency::extra_alias_entry_base_old &x, const boost::serialization::version_type ver) + { + a & x.m_address; + a & x.m_text_comment; + a & x.m_view_key; + a & x.m_sign; + } + + template + inline void serialize(Archive &a, currency::extra_alias_entry_old &x, const boost::serialization::version_type ver) + { + a & x.m_alias; + a & static_cast(x); + } + + template + inline void serialize(Archive &a, currency::signed_parts &x, const boost::serialization::version_type ver) + { + a & x.n_outs; + a & x.n_extras; + } + template inline void serialize(Archive &a, currency::extra_padding &x, const boost::serialization::version_type ver) {