From ecfccc9f5312f7fb11eed26c602008d377f39c39 Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 27 May 2020 23:01:37 +0300 Subject: [PATCH] wallet2: fixed wrong skipping bad output with mix_attr != 1 in an auditable wallet --- src/wallet/wallet2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 36fa53e5..b36e7b82 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -440,10 +440,11 @@ void wallet2::process_new_transaction(const currency::transaction& tx, uint64_t { std::stringstream ss; ss << "output #" << o << " from tx " << get_transaction_hash(tx) << " with amount " << print_money_brief(tx.vout[o].amount) - << " is targeted to this auditable wallet and has INCORRECT mix_attr = " << (uint64_t)otk.mix_attr << ". Output will be IGNORED."; + << " is targeted to this auditable wallet and has INCORRECT mix_attr = " << (uint64_t)otk.mix_attr << ". Output IGNORED."; WLT_LOG_RED(ss.str(), LOG_LEVEL_0); if (m_wcallback) m_wcallback->on_message(i_wallet2_callback::ms_red, ss.str()); + tx_money_got_in_outs -= tx.vout[o].amount; continue; // skip the output }