diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-12 15:33:05 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-12 15:35:52 +0000 |
| commit | fcbfb0a00aba0af6fd890610a7ac9cb7f5198d38 (patch) | |
| tree | 71588fd2db9be2c505b6b22e91a8949b9d8d54f2 | |
| parent | 3cbb44a2fd79ce9c667006e2e42e61513993e59a (diff) | |
| download | monzero-core-fcbfb0a00aba0af6fd890610a7ac9cb7f5198d38.tar.gz monzero-core-fcbfb0a00aba0af6fd890610a7ac9cb7f5198d38.tar.xz monzero-core-fcbfb0a00aba0af6fd890610a7ac9cb7f5198d38.zip | |
wallet2: fix missing m_state field in wallet serialization
| -rw-r--r-- | src/wallet/wallet2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index eac99185c..fed7d745c 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -434,7 +434,7 @@ private: 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) @@ -442,6 +442,8 @@ private: 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) |
