Don't remove unconfirmed txs from balance

This commit is contained in:
Aditya Kulkarni 2019-10-30 17:08:58 -07:00
parent 92d3804a5c
commit 50d331b0cf

View File

@ -767,7 +767,7 @@ impl LightWallet {
None => true
}
})
.map(|nd| if nd.spent.is_none() && nd.unconfirmed_spent.is_none() { nd.note.value } else { 0 })
.map(|nd| if nd.spent.is_none() { nd.note.value } else { 0 })
.sum::<u64>()
})
.sum::<u64>()