lnwallet: sign the REDEEMSCRIPT not the p2sh script :)

This commit is contained in:
Olaoluwa Osuntokun 2015-12-28 14:13:07 -06:00
parent 17f37cc254
commit 695a1e6c45

@ -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