Browse Source

Remove pending spent amount from balance

pull/14/head
Aditya Kulkarni 5 years ago
parent
commit
c6631b658a
  1. 2
      lib/src/lightwallet.rs

2
lib/src/lightwallet.rs

@ -767,7 +767,7 @@ impl LightWallet {
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>()

Loading…
Cancel
Save