[#GetP2SHSigOpCount]
= GetP2SHSigOpCount
:mrdocs:

Count ECDSA signature operations in pay&hyphen;to&hyphen;script&hyphen;hash inputs&period;

== Synopsis

Declared in `&lt;consensus&sol;tx&lowbar;verify&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned int
GetP2SHSigOpCount(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CCoinsViewCache.adoc[CCoinsViewCache] const& mapInputs);
----

== Return Value

maximum number of sigops required to validate this transaction&apos;s inputs

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mapInputs* [in]
| Map of previous transactions that have outputs we&apos;re spending
| *tx*
| The transaction whose pay&hyphen;to&hyphen;script&hyphen;hash input sigops are counted&period;
|===

== See Also

CTransaction&colon;&colon;FetchInputs


[.small]#Created with https://www.mrdocs.com[MrDocs]#
