From f5e324684f11f85e937792377335d3c994a15ece Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 6 Nov 2017 14:29:05 +0100 Subject: [PATCH] test: use signDesc.HashType instead of SigHashAll in mockSigner --- mock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mock.go b/mock.go index 63e4893d..daee7029 100644 --- a/mock.go +++ b/mock.go @@ -25,7 +25,7 @@ func (m *mockSigner) SignOutputRaw(tx *wire.MsgTx, privKey := m.key sig, err := txscript.RawTxInWitnessSignature(tx, signDesc.SigHashes, - signDesc.InputIndex, amt, witnessScript, txscript.SigHashAll, + signDesc.InputIndex, amt, witnessScript, signDesc.HashType, privKey) if err != nil { return nil, err @@ -38,7 +38,7 @@ func (m *mockSigner) ComputeInputScript(tx *wire.MsgTx, signDesc *lnwallet.SignDescriptor) (*lnwallet.InputScript, error) { witnessScript, err := txscript.WitnessSignature(tx, signDesc.SigHashes, signDesc.InputIndex, signDesc.Output.Value, - signDesc.Output.PkScript, txscript.SigHashAll, m.key, true) + signDesc.Output.PkScript, signDesc.HashType, m.key, true) if err != nil { return nil, err }