From 01da2e08d62c1c56b4954da4481878e6de337819 Mon Sep 17 00:00:00 2001 From: DenioD Date: Thu, 31 Oct 2019 17:16:57 +0100 Subject: [PATCH] set z_verified to anchor_offset --- 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 6eb81f8..929ecb1 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -802,7 +802,7 @@ impl LightWallet { pub fn verified_zbalance(&self, addr: Option) -> u64 { let anchor_height = match self.get_target_height_and_anchor_offset() { - Some((height, anchor_offset)) => height - anchor_offset as u32 - 1, + Some((height, anchor_offset)) => height - anchor_offset as u32 , None => return 0, };