From e8f7eee3618962120ad23eab87527b1b58ae01c4 Mon Sep 17 00:00:00 2001 From: Arjun <37590483+denverbdr@users.noreply.github.com> Date: Mon, 2 Dec 2019 10:51:54 -0800 Subject: [PATCH] Add pure t->z txns to tx list (#17) --- lib/src/lightclient.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 3089437..d0c0d51 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -720,7 +720,7 @@ impl LightClient { .flat_map(| (_k, v) | { let mut txns: Vec = vec![]; - if v.total_shielded_value_spent > 0 { + if v.total_shielded_value_spent + v.total_transparent_value_spent > 0 { // If money was spent, create a transaction. For this, we'll subtract // all the change notes. TODO: Add transparent change here to subtract it also let total_change: u64 = v.notes.iter()