mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-07-29 19:31:25 +00:00
Don't require wallet to be unlocked when redeeming/refunding P2SH, since the private key is being passed into the request.
This commit is contained in:
@@ -1748,11 +1748,6 @@ impl LightClient {
|
||||
}
|
||||
|
||||
pub fn do_redeem_p2sh(&self, from: &str, addrs: Vec<(&str, u64, Option<String>)>, fee: &u64, script: &[u8], txid: &[u8], lock_time: u32, secret: &[u8], privkey: &[u8]) -> Result<String, String> {
|
||||
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 = {
|
||||
|
Reference in New Issue
Block a user