Merge pull request #4789

0afdb00b wallet2: fix print_ring printing double entries for transactions (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-11-16 11:07:40 +02:00
commit 20bf9b93dd
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -1929,6 +1929,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))