diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index f34b10988..6ae31b8bb 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -11119,8 +11119,8 @@ std::vector wallet2::create_transactions_2(std::vector test_ptx.fee; ++fee_tries) { + size_t fee_tries = 0; + do { tx_dsts = tx.get_adjusted_dsts(needed_fee); if (use_rct) @@ -11133,7 +11133,7 @@ std::vector wallet2::create_transactions_2(std::vector test_ptx.fee && ++fee_tries < 10); THROW_WALLET_EXCEPTION_IF(fee_tries == 10, error::wallet_internal_error, "Too many attempts to raise pending tx fee to level of needed fee");