CScript::GetSigOpCount

Counts the signature operations in this script.

Synopsis

Declared in <script/script.h>

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

NameDescription
fAccurateWhether to count multisig sigops accurately.