aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-02-12 20:36:15 +0900
committerstoffu <stoffu@protonmail.ch>2018-02-12 20:36:15 +0900
commit3c33e1317b8c002f69a2fdfd5591f1b124509e63 (patch)
tree9df338c4f303728cdd583ead3a51b76eee426033 /src/wallet
parentwallet2: don't throw when spent amount is inconsistent (diff)
downloadmonero-3c33e1317b8c002f69a2fdfd5591f1b124509e63.tar.xz
wallet2: don't store invalid key image when watch-only
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet2.cpp2
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)