Browse Source

fix balance

checkpoints
DenioD 5 years ago
parent
commit
8a8b3dceda
  1. 5
      lib/src/lightwallet.rs

5
lib/src/lightwallet.rs

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

Loading…
Cancel
Save