mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #6986
ee58f4f
Balance includes unconfirmed payments (woodser)
This commit is contained in:
commit
4ee301c687
@ -6042,6 +6042,14 @@ std::map<uint32_t, uint64_t> wallet2::balance_per_subaddress(uint32_t index_majo
|
|||||||
found->second += utx.second.m_change;
|
found->second += utx.second.m_change;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const auto& utx: m_unconfirmed_payments)
|
||||||
|
{
|
||||||
|
if (utx.second.m_pd.m_subaddr_index.major == index_major)
|
||||||
|
{
|
||||||
|
amount_per_subaddr[utx.second.m_pd.m_subaddr_index.minor] += utx.second.m_pd.m_amount;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return amount_per_subaddr;
|
return amount_per_subaddr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user