From 0afdb00b9d4f6ad276b5b2cd902c16ef6e5f7c06 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 3 Nov 2018 11:49:45 +0000 Subject: 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 --- src/wallet/wallet2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 37b60c5d7..659fe0f58 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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)) -- cgit v1.2.3