|
|
@ -827,15 +827,17 @@ impl LightClient { |
|
|
|
return Err("Wallet is locked".to_string()); |
|
|
|
return Err("Wallet is locked".to_string()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let wallet = self.wallet.write().unwrap(); |
|
|
|
let new_address = { |
|
|
|
|
|
|
|
let wallet = self.wallet.write().unwrap(); |
|
|
|
let new_address = match addr_type { |
|
|
|
|
|
|
|
"z" => wallet.add_zaddr(), |
|
|
|
match addr_type { |
|
|
|
"t" => wallet.add_taddr(), |
|
|
|
"z" => wallet.add_zaddr(), |
|
|
|
_ => { |
|
|
|
"t" => wallet.add_taddr(), |
|
|
|
let e = format!("Unrecognized address type: {}", addr_type); |
|
|
|
_ => { |
|
|
|
error!("{}", e); |
|
|
|
let e = format!("Unrecognized address type: {}", addr_type); |
|
|
|
return Err(e); |
|
|
|
error!("{}", e); |
|
|
|
|
|
|
|
return Err(e); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|