Merge pull request #4172

3a4c3ac simplewallet.unspent_outputs: fix wrong logic for parsing (stoffu)
This commit is contained in:
luigi1111 2018-08-15 17:38:36 -05:00
commit 2102e6c738
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

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