diff --git a/lib/src/lightwallet.rs b/lib/src/lightwallet.rs index ca91ffd..059501e 100644 --- a/lib/src/lightwallet.rs +++ b/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::() - + .map(|nd| if nd.spent.is_none() && nd.unconfirmed_spent.is_none() { nd.note.value } else { 0 }) + .sum::() }) .sum::() as u64