From 6a8315364a6b0b4b72c7726b134f417b8449664a Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 12 Dec 2019 04:38:01 +0300 Subject: [PATCH] wallet: fixed a rare bug in generate_packing_transaction_if_needed (2) --- 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 1347d6d6..f820bc89 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, if (is_transfer_ready_to_go(m_transfers[*it_ind], fake_outputs_number)) ++count; } - if (count < m_pos_mint_packing_size) + if (count <= m_pos_mint_packing_size) return false; construct_tx_param ctp = get_default_construct_tx_param(); currency::tx_destination_entry de = AUTO_VAL_INIT(de);