MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetLegacySigOpCount

Function GetLegacySigOpCount

src/consensus/tx_verify.cpp:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122unsigned int GetLegacySigOpCount(const CTransaction& tx)
123{
124 unsigned int nSigOps = 0;
125 for (const auto& txin : tx.vin)
126 {
127 nSigOps += txin.scriptSig.GetSigOpCount(false);
128 }
129 for (const auto& txout : tx.vout)
130 {
131 nSigOps += txout.scriptPubKey.GetSigOpCount(false);
132 }
133 return nSigOps;
134}
135
136unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& inputs)
137{

Callers 4

CheckBlockFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
GetTransactionSigOpCostFunction · 0.85
CreateNewBlockMethod · 0.85

Calls 1

GetSigOpCountMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68