wallet2: fix print_ring printing double entries for transactions

When a tx gets from unconfirmed to conirmed, the rings for that
transaction were being added twice
This commit is contained in:
moneromooo-monero 2018-11-03 11:49:45 +00:00
parent 963d247154
commit 0afdb00b9d
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 0 deletions

View File

@ -1919,6 +1919,7 @@ void wallet2::process_outgoing(const crypto::hash &txid, const cryptonote::trans
entry.first->second.m_subaddr_indices = subaddr_indices;
}
entry.first->second.m_rings.clear();
for (const auto &in: tx.vin)
{
if (in.type() != typeid(cryptonote::txin_to_key))