| 1067 | |
| 1068 | |
| 1069 | unsigned 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 | |
| 1083 | unsigned int GetP2SHSigOpCount(const CTransaction& tx, const CCoinsViewCache& inputs) |
| 1084 | { |
no outgoing calls
no test coverage detected