diff options
author | Thomas Winget <tewinget@gmail.com> | 2014-06-16 22:11:47 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2014-06-30 07:16:50 -0400 |
commit | e5ab98a6f4e5daff875ab0d0bcf4141841fc2ead (patch) | |
tree | 27afaca07e8fa9f419e2bccf4c67f4381f5a999b /src | |
parent | Transaction splitting *seems* to be working!!! (diff) | |
download | monero-e5ab98a6f4e5daff875ab0d0bcf4141841fc2ead.tar.xz |
removed some debugging code (really stupid printf-style debuggng..
Diffstat (limited to 'src')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
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<std::vector<cryptonote::tx_destination_entry>> 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<std::vector<cryptonote::tx_destination_entry>> simple_wallet::split_ // transactions will be required void simple_wallet::create_transactions(std::vector<cryptonote::tx_destination_entry> dsts, const size_t fake_outs_count, const uint64_t unlock_time, const uint64_t fee, const std::vector<uint8_t> 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 |