diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-03 11:49:45 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-03 11:50:38 +0000 |
commit | 0afdb00b9d4f6ad276b5b2cd902c16ef6e5f7c06 (patch) | |
tree | 1c31fb06f6021bb991482c2404810057e865d730 /src | |
parent | Merge pull request #4676 (diff) | |
download | monero-0afdb00b9d4f6ad276b5b2cd902c16ef6e5f7c06.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)) |