From 695a1e6c450e8c61148ce04ea1bc6031a6b39e33 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 28 Dec 2015 14:13:07 -0600 Subject: [PATCH] lnwallet: sign the REDEEMSCRIPT not the p2sh script :) --- lnwallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index 303997421..0a069eb5b 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -676,7 +676,7 @@ func (l *LightningWallet) handleContributionMsg(req *addContributionMsg) { // Generate a signature for their version of the initial commitment // transaction. - sigTheirCommit, err := txscript.RawTxInSignature(theirCommitTx, 0, multiSigOut.PkScript, + sigTheirCommit, err := txscript.RawTxInSignature(theirCommitTx, 0, redeemScript, txscript.SigHashAll, ourKey) if err != nil { req.err <- err