mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
Copy InputIndex into the underlying SignDescriptor struct
When the InputIndex is not 0, the index is not currently copied into the underlying SignDescriptor structure and the siganture generated is not valid.
This commit is contained in:
parent
2cd26d7556
commit
90008386d8
1 changed files with 3 additions and 2 deletions
|
@ -375,6 +375,7 @@ func (s *Server) ComputeInputScript(ctx context.Context,
|
|||
},
|
||||
HashType: txscript.SigHashType(signDesc.Sighash),
|
||||
SigHashes: sigHashCache,
|
||||
InputIndex: int(signDesc.InputIndex),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue