aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-20 13:51:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-20 14:03:15 +0000
commit8c93608f2faa6fe7fb2d90d0d48201b465a4441e (patch)
tree49f6f94cdf4d52fbb24fc8868a41baf8b28a7133 /src/wallet
parentMerge pull request #544 (diff)
downloadmonero-8c93608f2faa6fe7fb2d90d0d48201b465a4441e.tar.xz
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/wallet')
-rw-r--r--src/wallet/wallet2.h7
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;