Merge pull request #3990 from yaslama/signrpc-input-index-fix

Copy InputIndex into the underlying SignDescriptor struct
This commit is contained in:
Johan T. Halseth 2020-02-11 08:47:03 +01:00 committed by GitHub
commit 5556735fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,8 +373,9 @@ func (s *Server) ComputeInputScript(ctx context.Context,
Value: signDesc.Output.Value,
PkScript: signDesc.Output.PkScript,
},
HashType: txscript.SigHashType(signDesc.Sighash),
SigHashes: sigHashCache,
HashType: txscript.SigHashType(signDesc.Sighash),
SigHashes: sigHashCache,
InputIndex: int(signDesc.InputIndex),
})
}