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

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_subaddr_indices = subaddr_indices;
} }
entry.first->second.m_rings.clear();
for (const auto &in: tx.vin) for (const auto &in: tx.vin)
{ {
if (in.type() != typeid(cryptonote::txin_to_key)) if (in.type() != typeid(cryptonote::txin_to_key))