[#CScript-GetSigOpCount-059] = xref:CScript.adoc[CScript]::GetSigOpCount :relfileprefix: ../ :mrdocs: Counts the signature operations in this script. == Synopsis Declared in `<script/script.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int GetSigOpCount(bool fAccurate) const; ---- == Description Pre‐version‐0.6, Bitcoin always counted CHECKMULTISIGs as 20 sigops. With pay‐to‐script‐hash, that changed: CHECKMULTISIGs serialized in scriptSigs are counted more accurately, assuming they are of the form ... OP_N CHECKMULTISIG ... == Return Value The number of signature operations. == Parameters [cols="1,4"] |=== | Name| Description | *fAccurate* | Whether to count multisig sigops accurately. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#