From f8aa9e34cc986261328cb3254b922590bc0a0a69 Mon Sep 17 00:00:00 2001 From: DenioD <41270280+DenioD@users.noreply.github.com> Date: Sun, 17 May 2020 17:30:07 +0200 Subject: [PATCH] fixzdust --- lib/src/lightwallet.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/lightwallet.rs b/lib/src/lightwallet.rs index 6e56ca0..a8cd4c5 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -471,9 +471,7 @@ impl LightWallet { } // Add a new Sietch Addr. This will derive a new zdust address from the seed pub fn add_zaddrdust(&self) -> String { - if !self.unlocked { - return "".to_string(); - } + let pos = self.extsks.read().unwrap().len() as u32;