lnwallet: sign the REDEEMSCRIPT not the p2sh script :)
This commit is contained in:
parent
17f37cc254
commit
695a1e6c45
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user