mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-01 03:12:15 +00:00
Remove pending spent amount from balance
This commit is contained in:
parent
a8ede64e55
commit
c6631b658a
@ -767,7 +767,7 @@ impl LightWallet {
|
|||||||
None => true
|
None => true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.map(|nd| if nd.spent.is_none() { nd.note.value } else { 0 })
|
.map(|nd| if nd.spent.is_none() && nd.unconfirmed_spent.is_none() { nd.note.value } else { 0 })
|
||||||
.sum::<u64>()
|
.sum::<u64>()
|
||||||
})
|
})
|
||||||
.sum::<u64>()
|
.sum::<u64>()
|
||||||
|
Loading…
Reference in New Issue
Block a user