mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
lnwallet: sign the REDEEMSCRIPT not the p2sh script :)
This commit is contained in:
parent
17f37cc254
commit
695a1e6c45
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue