input/test_utils: make mockSigner use SigHashType from sign descriptor

This commit is contained in:
Johan T. Halseth 2020-03-06 16:11:47 +01:00
parent 6810912c86
commit d1089fb449
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -67,7 +67,7 @@ func (m *MockSigner) SignOutputRaw(tx *wire.MsgTx, signDesc *SignDescriptor) ([]
sig, err := txscript.RawTxInWitnessSignature(tx, signDesc.SigHashes,
signDesc.InputIndex, signDesc.Output.Value, signDesc.WitnessScript,
txscript.SigHashAll, privKey)
signDesc.HashType, privKey)
if err != nil {
return nil, err
}