mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-07-30 20:01:26 +00:00
Revert "Re-enable syncing when redeeming P2SH, to see if it fixes a crash when building the transaction."
This reverts commit ca6d79464a
.
This commit is contained in:
@@ -817,17 +817,17 @@ impl Command for RedeemP2shCommand {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
match lightclient.do_sync(true) {
|
// match lightclient.do_sync(true) {
|
||||||
Ok(_) => {
|
// Ok(_) => {
|
||||||
// Convert to the right format. String -> &str.
|
// Convert to the right format. String -> &str.
|
||||||
let tos = send_args.iter().map(|(a, v, m)| (a.as_str(), *v, m.clone()) ).collect::<Vec<_>>();
|
let tos = send_args.iter().map(|(a, v, m)| (a.as_str(), *v, m.clone()) ).collect::<Vec<_>>();
|
||||||
match lightclient.do_redeem_p2sh(from, tos, &fee, script_bytes, txid_bytes, lock_time, secret_bytes, privkey_bytes) {
|
match lightclient.do_redeem_p2sh(from, tos, &fee, script_bytes, txid_bytes, lock_time, secret_bytes, privkey_bytes) {
|
||||||
Ok(txid) => { object!{ "txid" => txid } },
|
Ok(txid) => { object!{ "txid" => txid } },
|
||||||
Err(e) => { object!{ "error" => e } }
|
Err(e) => { object!{ "error" => e } }
|
||||||
}.pretty(2)
|
}.pretty(2)
|
||||||
},
|
// },
|
||||||
Err(e) => e
|
// Err(e) => e
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user