simplewallet.unspent_outputs: fix wrong logic for parsing

pull/105/head
stoffu 6 years ago committed by wowario
parent 7ba6d69196
commit ee45ef2c9e
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -6167,7 +6167,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;

Loading…
Cancel
Save