lnwallet: sign the REDEEMSCRIPT not the p2sh script :)
This commit is contained in:
1 parent
17f37cc254
commit
695a1e6c45
1 file changed
+1
-1
+1
-1
@@ -676,7 +676,7 @@ func (l *LightningWallet) handleContributionMsg(req *addContributionMsg) {
|
|||||||
|
|
||||||
// Generate a signature for their version of the initial commitment
|
// Generate a signature for their version of the initial commitment
|
||||||
// transaction.
|
// transaction.
|
||||||
sigTheirCommit, err := txscript.RawTxInSignature(theirCommitTx, 0, multiSigOut.PkScript,
|
sigTheirCommit, err := txscript.RawTxInSignature(theirCommitTx, 0, redeemScript,
|
||||||
txscript.SigHashAll, ourKey)
|
txscript.SigHashAll, ourKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
req.err <- err
|
req.err <- err
|
||||||
|
|||||||
Reference in new issue
Block a user