aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordoy-lee <doylet@protonmail.com>2018-09-26 12:38:39 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-02 08:53:28 +0000
commitbccd88ddf5f09a7bf774b3437a6396ac9953aad5 (patch)
treef594fbd871aef0d533ff1b9ecb1a4e51752917cb /src
parentMerge pull request #4333 (diff)
downloadmonero-bccd88ddf5f09a7bf774b3437a6396ac9953aad5.tar.xz
wallet2: clear found out for every tx key
Avoids triggering the sanity check
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 299b4afeb..14077bc9b 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -1339,7 +1339,6 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote
// (that is, the prunable stuff may or may not be included)
if (!miner_tx && !pool)
process_unconfirmed(txid, tx, height);
- std::vector<size_t> outs;
std::unordered_map<cryptonote::subaddress_index, uint64_t> tx_money_got_in_outs; // per receiving subaddress index
crypto::public_key tx_pub_key = null_pkey;
bool notify = false;
@@ -1362,6 +1361,7 @@ void wallet2::process_new_transaction(const crypto::hash &txid, const cryptonote
uint64_t total_received_1 = 0;
while (!tx.vout.empty())
{
+ std::vector<size_t> outs;
// if tx.vout is not empty, we loop through all tx pubkeys
tx_extra_pub_key pub_key_field;