wallet2: don't store invalid key image when watch-only

This commit is contained in:
stoffu 2018-02-12 20:36:15 +09:00
parent 0133b3481a
commit 3c33e1317b
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012
1 changed files with 1 additions and 1 deletions

View File

@ -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)