From c903df5ecea505124c9c7e0d20ffd91d126ce449 Mon Sep 17 00:00:00 2001 From: stoffu Date: Mon, 15 Jan 2018 22:38:33 +0900 Subject: [PATCH] simplewallet: bug fix for backlog estimate --- src/simplewallet/simplewallet.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 18b6d49d1..987c8b286 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3854,7 +3854,6 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector::max(); - uint64_t size = 0, fee = 0; for (size_t n = 0; n < ptx_vector.size(); ++n) { const uint64_t blob_size = cryptonote::tx_to_blob(ptx_vector[n].tx).size(); @@ -3862,13 +3861,11 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector> nblocks = m_wallet->estimate_backlog(size, size, {fee}); + std::vector> nblocks = m_wallet->estimate_backlog({std::make_pair(worst_fee_per_byte, worst_fee_per_byte)}); if (nblocks.size() != 1) { prompt << "Internal error checking for backlog. " << tr("Is this okay anyway? (Y/Yes/N/No): ");