[#CScript-GetSigOpCount-059]
= xref:CScript.adoc[CScript]::GetSigOpCount
:relfileprefix: ../
:mrdocs:

Counts the signature operations in this script&period;

== Synopsis

Declared in `&lt;script&sol;script&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned int
GetSigOpCount(bool fAccurate) const;
----

== Description

Pre&hyphen;version&hyphen;0&period;6, Bitcoin always counted CHECKMULTISIGs as 20 sigops&period; With pay&hyphen;to&hyphen;script&hyphen;hash, that changed&colon; CHECKMULTISIGs serialized in scriptSigs are counted more accurately, assuming they are of the form &period;&period;&period; OP&lowbar;N CHECKMULTISIG &period;&period;&period;

== Return Value

The number of signature operations&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fAccurate*
| Whether to count multisig sigops accurately&period;
|===


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