mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
simplewallet: fix incoming_transfers index error
This commit is contained in:
parent
b58a9fb12e
commit
ace4669543
@ -6061,6 +6061,7 @@ bool simple_wallet::show_incoming_transfers(const std::vector<std::string>& args
|
|||||||
auto local_args = args;
|
auto local_args = args;
|
||||||
LOCK_IDLE_SCOPE();
|
LOCK_IDLE_SCOPE();
|
||||||
|
|
||||||
|
std::set<uint32_t> subaddr_indices;
|
||||||
bool filter = false;
|
bool filter = false;
|
||||||
bool available = false;
|
bool available = false;
|
||||||
bool verbose = false;
|
bool verbose = false;
|
||||||
@ -6086,6 +6087,11 @@ bool simple_wallet::show_incoming_transfers(const std::vector<std::string>& args
|
|||||||
verbose = true;
|
verbose = true;
|
||||||
else if (local_args[0] == "uses")
|
else if (local_args[0] == "uses")
|
||||||
uses = true;
|
uses = true;
|
||||||
|
else if (local_args[0].substr(0, 6) == "index=")
|
||||||
|
{
|
||||||
|
if (!parse_subaddress_indices(local_args[0], subaddr_indices))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fail_msg_writer() << tr("Invalid keyword: ") << local_args.front();
|
fail_msg_writer() << tr("Invalid keyword: ") << local_args.front();
|
||||||
@ -6098,14 +6104,6 @@ bool simple_wallet::show_incoming_transfers(const std::vector<std::string>& args
|
|||||||
|
|
||||||
PAUSE_READLINE();
|
PAUSE_READLINE();
|
||||||
|
|
||||||
std::set<uint32_t> subaddr_indices;
|
|
||||||
if (local_args.size() > 0 && local_args[0].substr(0, 6) == "index=")
|
|
||||||
{
|
|
||||||
if (!parse_subaddress_indices(local_args[0], subaddr_indices))
|
|
||||||
return true;
|
|
||||||
local_args.erase(local_args.begin());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (local_args.size() > 0)
|
if (local_args.size() > 0)
|
||||||
{
|
{
|
||||||
PRINT_USAGE(USAGE_INCOMING_TRANSFERS);
|
PRINT_USAGE(USAGE_INCOMING_TRANSFERS);
|
||||||
|
Loading…
Reference in New Issue
Block a user