mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #5457
3b9ce45
wallet_rpc_server: remove unused variable (moneromooo-monero)
This commit is contained in:
commit
705fbcfda4
@ -1811,14 +1811,12 @@ namespace tools
|
|||||||
wallet2::transfer_container transfers;
|
wallet2::transfer_container transfers;
|
||||||
m_wallet->get_transfers(transfers);
|
m_wallet->get_transfers(transfers);
|
||||||
|
|
||||||
bool transfers_found = false;
|
|
||||||
for (const auto& td : transfers)
|
for (const auto& td : transfers)
|
||||||
{
|
{
|
||||||
if (!filter || available != td.m_spent)
|
if (!filter || available != td.m_spent)
|
||||||
{
|
{
|
||||||
if (req.account_index != td.m_subaddr_index.major || (!req.subaddr_indices.empty() && req.subaddr_indices.count(td.m_subaddr_index.minor) == 0))
|
if (req.account_index != td.m_subaddr_index.major || (!req.subaddr_indices.empty() && req.subaddr_indices.count(td.m_subaddr_index.minor) == 0))
|
||||||
continue;
|
continue;
|
||||||
transfers_found = true;
|
|
||||||
wallet_rpc::transfer_details rpc_transfers;
|
wallet_rpc::transfer_details rpc_transfers;
|
||||||
rpc_transfers.amount = td.amount();
|
rpc_transfers.amount = td.amount();
|
||||||
rpc_transfers.spent = td.m_spent;
|
rpc_transfers.spent = td.m_spent;
|
||||||
|
Loading…
Reference in New Issue
Block a user