You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -648,7 +652,7 @@ impl BaseSign for InMemorySigner {
648
652
let witness_script = {
649
653
let counterparty_htlcpubkey = chan_utils::derive_public_key(&secp_ctx,&per_commitment_point,&self.counterparty_pubkeys().htlc_basepoint).map_err(|_| ())?;
650
654
let holder_htlcpubkey = chan_utils::derive_public_key(&secp_ctx,&per_commitment_point,&self.pubkeys().htlc_basepoint).map_err(|_| ())?;
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&outp.htlc,&chan_keys.broadcaster_htlc_key,&chan_keys.countersignatory_htlc_key,&chan_keys.revocation_key);
344
+
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&outp.htlc,onchain_handler.opt_anchors(),&chan_keys.broadcaster_htlc_key,&chan_keys.countersignatory_htlc_key,&chan_keys.revocation_key);
345
345
//TODO: should we panic on signer failure ?
346
346
ifletOk(sig) = onchain_handler.signer.sign_justice_revoked_htlc(&bumped_tx, i, outp.amount,&outp.per_commitment_key,&outp.htlc,&onchain_handler.secp_ctx){
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&outp.htlc,&chan_keys.broadcaster_htlc_key,&chan_keys.countersignatory_htlc_key,&chan_keys.revocation_key);
356
+
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&outp.htlc,onchain_handler.opt_anchors(),&chan_keys.broadcaster_htlc_key,&chan_keys.countersignatory_htlc_key,&chan_keys.revocation_key);
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&outp.htlc,&chan_keys.broadcaster_htlc_key,&chan_keys.countersignatory_htlc_key,&chan_keys.revocation_key);
368
+
let witness_script = chan_utils::get_htlc_redeemscript_with_explicit_keys(&outp.htlc,onchain_handler.opt_anchors(),&chan_keys.broadcaster_htlc_key,&chan_keys.countersignatory_htlc_key,&chan_keys.revocation_key);
369
369
370
370
bumped_tx.lock_time = outp.htlc.cltv_expiry;// Right now we don't aggregate time-locked transaction, if we do we should set lock_time before to avoid breaking hash computation
0 commit comments