From 8c93608f2faa6fe7fb2d90d0d48201b465a4441e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 20 Dec 2015 13:51:55 +0000 Subject: [PATCH] wallet: fix load/save versioning bug for recently added tx data The version number passed to those data's serialize function was always 0, not the wallet's version as I had expected. A version number now exists for these structures so they're versioned correctly. --- src/wallet/wallet2.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index ecf4ef3d..b71705fb 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -408,6 +408,9 @@ namespace tools }; } BOOST_CLASS_VERSION(tools::wallet2, 10) +BOOST_CLASS_VERSION(tools::wallet2::payment_details, 0) +BOOST_CLASS_VERSION(tools::wallet2::unconfirmed_transfer_details, 1) +BOOST_CLASS_VERSION(tools::wallet2::confirmed_transfer_details, 1) namespace boost { @@ -430,7 +433,7 @@ namespace boost a & x.m_change; a & x.m_sent_time; a & x.m_tx; - if (ver < 9) + if (ver < 1) return; a & x.m_dests; a & x.m_payment_id; @@ -443,7 +446,7 @@ namespace boost a & x.m_amount_out; a & x.m_change; a & x.m_block_height; - if (ver < 9) + if (ver < 1) return; a & x.m_dests; a & x.m_payment_id;