mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Merge #7715: Fix calculation of balances and available coins.
68d4282
Fix calculation of balances and available coins. (Alex Morcos)
This commit is contained in:
parent
760d58e3dc
commit
f933c67266
@ -2383,6 +2383,11 @@ void CWallet::AvailableCoins(vector<COutput>& vCoins, bool fOnlyConfirmed, const
|
|||||||
if (nDepth == 0 && !pcoin->InMempool())
|
if (nDepth == 0 && !pcoin->InMempool())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// We should not consider coins which aren't at least in our mempool
|
||||||
|
// It's possible for these to be conflicted via ancestors which we may never be able to detect
|
||||||
|
if (nDepth == 0 && !pcoin->InMempool())
|
||||||
|
continue;
|
||||||
|
|
||||||
for (unsigned int i = 0; i < pcoin->vout.size(); i++) {
|
for (unsigned int i = 0; i < pcoin->vout.size(); i++) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
if(nCoinType == ONLY_DENOMINATED) {
|
if(nCoinType == ONLY_DENOMINATED) {
|
||||||
|
Loading…
Reference in New Issue
Block a user