mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
lnwallet: sign the REDEEMSCRIPT not the p2sh script :)
This commit is contained in:
@@ -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