fix zdust

This commit is contained in:
DenioD
2020-05-17 17:39:02 +02:00
parent f8aa9e34cc
commit 5840bd1b64
2 changed files with 2 additions and 5 deletions

View File

@@ -914,10 +914,7 @@ impl LightClient {
}
pub fn do_new_sietchaddress(&self, addr_type: &str) -> Result<JsonValue, String> {
if !self.wallet.read().unwrap().is_unlocked_for_spending() {
error!("Wallet is locked");
return Err("Wallet is locked".to_string());
}
let new_address = {
let wallet = self.wallet.write().unwrap();

View File

@@ -471,7 +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 {
let pos = self.extsks.read().unwrap().len() as u32;