diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-20 13:51:55 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-20 14:03:15 +0000 |
| commit | 8c93608f2faa6fe7fb2d90d0d48201b465a4441e (patch) | |
| tree | 49f6f94cdf4d52fbb24fc8868a41baf8b28a7133 /src | |
| parent | 5d33b43d8d957b4ec8051f54a1d14af35226a6dd (diff) | |
| download | monzero-core-8c93608f2faa6fe7fb2d90d0d48201b465a4441e.tar.gz monzero-core-8c93608f2faa6fe7fb2d90d0d48201b465a4441e.tar.xz monzero-core-8c93608f2faa6fe7fb2d90d0d48201b465a4441e.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet2.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index ecf4ef3dc..b71705fb8 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; |
