aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOyvind Kvanes <oyvind@kvanes.no>2016-09-28 16:44:43 +0200
committerOyvind Kvanes <oyvind@kvanes.no>2016-09-28 16:44:43 +0200
commit68ac0607da1a06681622c57e3af3854598c7fe36 (patch)
treeb7a32315f5fc316377d10b584fe32cfddf7ce55a /src
parentAdd locked_transfer (diff)
downloadmonero-68ac0607da1a06681622c57e3af3854598c7fe36.tar.xz
Fix locked_transfer
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 3fe9b9091..667338782 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -2582,11 +2582,7 @@ bool simple_wallet::locked_transfer(const std::vector<std::string> &args_)
}
}
- if(local_args.size() < 3 )
- {
- fail_msg_writer() << tr("wrong number of arguments");
- return true;
- }
+
if(m_wallet->watch_only())
{
@@ -2596,7 +2592,8 @@ bool simple_wallet::locked_transfer(const std::vector<std::string> &args_)
int given_unlock_time = 0;
std::vector<uint8_t> extra;
bool payment_id_seen = false;
- if (local_args.size() < 5)
+
+ if (2 < local_args.size() && local_args.size() < 5)
{
if (local_args.size() == 4)
{