From 0dd6053221cb7482b5322d92ab12a5f841f8d17f Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 21 Feb 2020 12:26:14 +0300 Subject: [PATCH] waller: generate_packing_transaction_if_needed() fixed --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index a8e52792..1ac0f53d 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2334,7 +2334,7 @@ bool wallet2::generate_packing_transaction_if_needed(currency::transaction& tx, //let's check if we have at least WALLET_POS_MINT_PACKING_SIZE transactions which is ready to go size_t count = 0; - for (auto it_ind = it->second.begin(); it_ind != it->second.end() && count < m_pos_mint_packing_size; it_ind++) + for (auto it_ind = it->second.begin(); it_ind != it->second.end() && count <= m_pos_mint_packing_size; it_ind++) { if (is_transfer_ready_to_go(m_transfers[*it_ind], fake_outputs_number)) ++count;