mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Balance includes unconfirmed payments
This commit is contained in:
parent
8b3b106ad1
commit
ee58f4f766
1 changed files with 8 additions and 0 deletions
|
@ -6017,6 +6017,14 @@ std::map<uint32_t, uint64_t> wallet2::balance_per_subaddress(uint32_t index_majo
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue