1
0
Fork 0
forked from lthn/blockchain

wallet: fixed a rare bug in generate_packing_transaction_if_needed (2)

This commit is contained in:
sowle 2019-12-12 04:38:01 +03:00
parent e8ce7c20a3
commit 6a8315364a
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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);