From 1a666c301634ebf543fe23aa1dd51388e3f05edc Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 18 Mar 2017 11:43:13 +0000 Subject: [PATCH] simplewallet: catch case where no transactions are made This would otherwise be a silent noop, which is confusing. This can happen if the daemon is started, but not yet ready to service all requests, and this is a safe catch all. --- src/simplewallet/simplewallet.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index f5763648..387c4454 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::vectoralways_confirm_transfers() || ptx_vector.size() > 1) { @@ -2764,7 +2770,7 @@ bool simple_wallet::sweep_all(const std::vector &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; }