mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 13:09:24 +00:00
wallet2: don't store invalid key image when watch-only
This commit is contained in:
parent
0133b3481a
commit
3c33e1317b
1 changed files with 1 additions and 1 deletions
|
@ -1219,7 +1219,7 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote
|
||||||
td.m_rct = false;
|
td.m_rct = false;
|
||||||
}
|
}
|
||||||
set_unspent(m_transfers.size()-1);
|
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_key_images[td.m_key_image] = m_transfers.size()-1;
|
||||||
m_pub_keys[tx_scan_info[o].in_ephemeral.pub] = m_transfers.size()-1;
|
m_pub_keys[tx_scan_info[o].in_ephemeral.pub] = m_transfers.size()-1;
|
||||||
if (m_multisig)
|
if (m_multisig)
|
||||||
|
|
Loading…
Reference in a new issue