mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
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:
parent
963d247154
commit
0afdb00b9d
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue