mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
Merge pull request #2918
f5bc7f18
simplewallet: fix default unspent_outputs output with subaddresses (moneromooo-monero)
This commit is contained in:
commit
170f598ac9
@ -5350,7 +5350,7 @@ bool simple_wallet::unspent_outputs(const std::vector<std::string> &args_)
|
|||||||
for (const auto& td : transfers)
|
for (const auto& td : transfers)
|
||||||
{
|
{
|
||||||
uint64_t amount = td.amount();
|
uint64_t amount = td.amount();
|
||||||
if (td.m_spent || amount < min_amount || amount > max_amount || td.m_subaddr_index.major != m_current_subaddress_account || subaddr_indices.count(td.m_subaddr_index.minor) == 0)
|
if (td.m_spent || amount < min_amount || amount > max_amount || td.m_subaddr_index.major != m_current_subaddress_account || (subaddr_indices.count(td.m_subaddr_index.minor) == 0 && !subaddr_indices.empty()))
|
||||||
continue;
|
continue;
|
||||||
amount_to_tds[amount].push_back(td);
|
amount_to_tds[amount].push_back(td);
|
||||||
if (min_height > td.m_block_height) min_height = td.m_block_height;
|
if (min_height > td.m_block_height) min_height = td.m_block_height;
|
||||||
|
Loading…
Reference in New Issue
Block a user