diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 6782763..777e016 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -1748,11 +1748,6 @@ impl LightClient { } pub fn do_redeem_p2sh(&self, from: &str, addrs: Vec<(&str, u64, Option)>, fee: &u64, script: &[u8], txid: &[u8], lock_time: u32, secret: &[u8], privkey: &[u8]) -> Result { - if !self.wallet.read().unwrap().is_unlocked_for_spending() { - error!("Wallet is locked"); - return Err("Wallet is locked".to_string()); - } - info!("Creating transaction to redeem funds from P2SH"); let result = {