aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-18 20:28:45 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-18 20:28:45 +0200
commit4fb39a9d20b2f70420ce8567e7fd92880a54672d (patch)
tree5cd9cdf1e8359e50e7d848f01216002d34bf38b1 /src
parentMerge pull request #1880 (diff)
parentsimplewallet: catch case where no transactions are made (diff)
downloadmonero-4fb39a9d20b2f70420ce8567e7fd92880a54672d.tar.xz
Merge pull request #1881
1a666c30 simplewallet: catch case where no transactions are made (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index f5763648f..387c44545 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -2298,6 +2298,12 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
break;
}
+ if (ptx_vector.empty())
+ {
+ fail_msg_writer() << tr("No outputs found, or daemon is not ready");
+ return true;
+ }
+
// if more than one tx necessary, prompt user to confirm
if (m_wallet->always_confirm_transfers() || ptx_vector.size() > 1)
{
@@ -2764,7 +2770,7 @@ bool simple_wallet::sweep_all(const std::vector<std::string> &args_)
if (ptx_vector.empty())
{
- fail_msg_writer() << tr("No outputs found");
+ fail_msg_writer() << tr("No outputs found, or daemon is not ready");
return true;
}