diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-07 18:23:01 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-08 10:39:54 +0000 |
commit | 2d7b0236eb85a767261611fb558c841a9f790293 (patch) | |
tree | ffed9f2048b5e0ef1ec8a1ee6a408a416efbf4ab /src | |
parent | Merge pull request #4879 (diff) | |
download | monero-2d7b0236eb85a767261611fb558c841a9f790293.tar.xz |
wallet2: clear all payments on soft rescan_bc
They'll get duplicated otherwise
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index bbb801716..ee54faaa4 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -5139,6 +5139,10 @@ void wallet2::rescan_blockchain(bool hard, bool refresh) m_transfers.clear(); m_key_images.clear(); m_pub_keys.clear(); + m_unconfirmed_txs.clear(); + m_payments.clear(); + m_confirmed_txs.clear(); + m_unconfirmed_payments.clear(); m_scanned_pool_txs[0].clear(); m_scanned_pool_txs[1].clear(); |