MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetLegacySigOpCount

Function GetLegacySigOpCount

src/main.cpp:1069–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067
1068
1069unsigned int GetLegacySigOpCount(const CTransaction& tx)
1070{
1071 unsigned int nSigOps = 0;
1072 BOOST_FOREACH(const CTxIn& txin, tx.vin)
1073 {
1074 nSigOps += txin.scriptSig.GetSigOpCount(false);
1075 }
1076 BOOST_FOREACH(const CTxOut& txout, tx.vout)
1077 {
1078 nSigOps += txout.scriptPubKey.GetSigOpCount(false);
1079 }
1080 return nSigOps;
1081}
1082
1083unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& inputs)
1084{

Callers 5

CreateNewBlockFunction · 0.85
CheckTransactionFunction · 0.85
AcceptToMemoryPoolFunction · 0.85
ConnectBlockFunction · 0.85
BOOST_FOREACHFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected