diff options
author | stoffu <stoffu@protonmail.ch> | 2018-02-12 20:36:15 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-02-12 20:36:15 +0900 |
commit | 3c33e1317b8c002f69a2fdfd5591f1b124509e63 (patch) | |
tree | 9df338c4f303728cdd583ead3a51b76eee426033 | |
parent | wallet2: don't throw when spent amount is inconsistent (diff) | |
download | monero-3c33e1317b8c002f69a2fdfd5591f1b124509e63.tar.xz |
wallet2: don't store invalid key image when watch-only
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 364ab9c06..2d8f0bc4a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1219,7 +1219,7 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote td.m_rct = false; } set_unspent(m_transfers.size()-1); - if (!m_multisig) + if (!m_multisig && !m_watch_only) m_key_images[td.m_key_image] = m_transfers.size()-1; m_pub_keys[tx_scan_info[o].in_ephemeral.pub] = m_transfers.size()-1; if (m_multisig) |