From 50d331b0cfe1b3c4b81e33fd6febb4b24264627a Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 30 Oct 2019 17:08:58 -0700 Subject: [PATCH] Don't remove unconfirmed txs from balance --- lib/src/lightwallet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/lightwallet.rs b/lib/src/lightwallet.rs index 71d1005..a9db4c0 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -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::() }) .sum::()