From e5ab98a6f4e5daff875ab0d0bcf4141841fc2ead Mon Sep 17 00:00:00 2001 From: Thomas Winget Date: Mon, 16 Jun 2014 22:11:47 -0400 Subject: removed some debugging code (really stupid printf-style debuggng.. --- src/simplewallet/simplewallet.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/simplewallet/simplewallet.cpp') diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 631f9d4b8..75b4072ec 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -813,15 +813,12 @@ std::vector> simple_wallet::split_ uint64_t amount; amount = dsts[j].amount; - std::cout << "Amount before split: " << amount << "; num_splits: " << num_splits; amount = amount / num_splits; - std::cout << "; amount after split: " << amount; // if last split, add remainder if (i + 1 == num_splits) { amount += dsts[j].amount % num_splits; - std::cout << "; amount after remainder: " << amount; } std::cout << std::endl; @@ -844,20 +841,14 @@ std::vector> simple_wallet::split_ // transactions will be required void simple_wallet::create_transactions(std::vector dsts, const size_t fake_outs_count, const uint64_t unlock_time, const uint64_t fee, const std::vector extra) { - // for now, limit to 5 attempts. TODO: discuss a good number to limit to. - const size_t MAX_ATTEMPTS = 5; + // for now, limit to 30 attempts. TODO: discuss a good number to limit to. + const size_t MAX_ATTEMPTS = 30; // failsafe split attempt counter size_t attempt_count = 0; for(attempt_count = 1; ;attempt_count++) { - if (attempt_count > 1) - { - std::string prompt = "Attempt #"; - prompt.append(std::to_string(attempt_count)); - command_line::input_line(prompt); - } auto split_values = split_amounts(dsts, attempt_count); // Throw if split_amounts comes back with a vector of size different than it should -- cgit v1.2.3