Skip to content

Commit

Permalink
Merge pull request #6882
Browse files Browse the repository at this point in the history
fcbfb0a wallet2: fix missing m_state field in wallet serialization (moneromooo-monero)
  • Loading branch information
Snipa22 committed Oct 19, 2020
2 parents 543d600 + fcbfb0a commit 142489b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wallet/wallet2.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,14 +434,16 @@ namespace tools
std::vector<std::pair<crypto::key_image, std::vector<uint64_t>>> m_rings; // relative

BEGIN_SERIALIZE_OBJECT()
VERSION_FIELD(0)
VERSION_FIELD(1)
FIELD(m_tx)
VARINT_FIELD(m_amount_in)
VARINT_FIELD(m_amount_out)
VARINT_FIELD(m_change)
VARINT_FIELD(m_sent_time)
FIELD(m_dests)
FIELD(m_payment_id)
if (version >= 1)
VARINT_FIELD(m_state)
VARINT_FIELD(m_timestamp)
VARINT_FIELD(m_subaddr_account)
FIELD(m_subaddr_indices)
Expand Down

0 comments on commit 142489b

Please sign in to comment.