aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-06-16 15:16:54 -0400
committerThomas Winget <tewinget@gmail.com>2014-06-30 07:16:50 -0400
commit9bfe0b9b6c601f732c4708ba00dc2203c383566f (patch)
tree10b7a3cfda8fb1886f2fc8cf9de0033ff5cec6ff /src/simplewallet
parentadded back successful tx message. oops. (diff)
downloadmonero-9bfe0b9b6c601f732c4708ba00dc2203c383566f.tar.xz
Added confirmation prompt if transactions are to be split
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 96f209cad..69aade89d 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -880,6 +880,22 @@ void simple_wallet::create_transactions(std::vector<cryptonote::tx_destination_e
}
+ // prompt user to confirm splits (if needed)
+ if (attempt_count > 1)
+ {
+ std::string prompt_str = "Your transaction needs to be split into ";
+ prompt_str += attempt_count;
+ prompt_str += " transactions. This will result in a fee of ";
+ prompt_str += print_money(attempt_count * DEFAULT_FEE);
+ prompt_str += ". Is this okay? (Y/Yes/N/No)";
+ std::string accepted = command_line::input_line(prompt_str);
+ if (accepted != "Y" && accepted != "y" && accepted != "Yes" && accepted != "yes")
+ {
+ fail_msg_writer() << "Transaction cancelled.";
+ return;
+ }
+ }
+
// if we made it this far, we're OK to actually send the transactions
while (!ptx_vector.empty())
{