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.
This commit is contained in:
moneromooo-monero 2015-12-20 13:51:55 +00:00
parent 5d33b43d8d
commit 8c93608f2f
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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;