aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-07-24 13:32:58 +0900
committerstoffu <stoffu@protonmail.ch>2018-07-24 13:32:58 +0900
commit3a4c3ac89104323cb72df4e2102c4563c92be2df (patch)
treef5281ef8b9e7b04c064c428b1fbd27422c5f04df /src
parentMerge pull request #4088 (diff)
downloadmonero-3a4c3ac89104323cb72df4e2102c4563c92be2df.tar.xz
simplewallet.unspent_outputs: fix wrong logic for parsing
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 193b62571..cda5f4ddc 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -6401,7 +6401,7 @@ bool simple_wallet::unspent_outputs(const std::vector<std::string> &args_)
auto local_args = args_;
std::set<uint32_t> subaddr_indices;
- if (local_args.size() > 0 && local_args[0].substr(0, 6) != "index=")
+ if (local_args.size() > 0 && local_args[0].substr(0, 6) == "index=")
{
if (!parse_subaddress_indices(local_args[0], subaddr_indices))
return true;