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
@@ -196,7 +196,7 @@ impl ChannelKeys for InMemoryChannelKeys {
196
196
if commitment_tx.input.len() != 1{returnErr(());}
197
197
198
198
let funding_pubkey = PublicKey::from_secret_key(secp_ctx,&self.funding_key);
199
-
let channel_funding_redeemscript = make_funding_redeemscript(funding_pubkey,self.remote_funding_pubkey.expect("must set remote funding key before signing"));
199
+
let channel_funding_redeemscript = make_funding_redeemscript(&funding_pubkey,&self.remote_funding_pubkey.expect("must set remote funding key before signing"));
200
200
201
201
let commitment_sighash = hash_to_message!(&bip143::SighashComponents::new(&commitment_tx).sighash_all(&commitment_tx.input[0],&channel_funding_redeemscript, channel_value_satoshis)[..]);
202
202
let commitment_sig = secp_ctx.sign(&commitment_sighash,&self.funding_key);
@@ -389,7 +389,6 @@ impl KeysInterface for KeysManager {
389
389
let payment_base_key = key_step!(b"payment base key", revocation_base_key);
390
390
let delayed_payment_base_key = key_step!(b"delayed payment base key", payment_base_key);
391
391
let htlc_base_key = key_step!(b"HTLC base key", delayed_payment_base_key);
392
-
let remote_funding_pubkey = None;
393
392
394
393
InMemoryChannelKeys{
395
394
funding_key,
@@ -398,7 +397,7 @@ impl KeysInterface for KeysManager {
0 commit comments