MCPcopy
hub / github.com/petertodd/python-bitcoinlib / GetLegacySigOpCount

Function GetLegacySigOpCount

bitcoin/core/__init__.py:863–869  ·  view source on GitHub ↗
(tx)

Source from the content-addressed store, hash-verified

861 pass
862
863def GetLegacySigOpCount(tx):
864 nSigOps = 0
865 for txin in tx.vin:
866 nSigOps += txin.scriptSig.GetSigOpCount(False)
867 for txout in tx.vout:
868 nSigOps += txout.scriptPubKey.GetSigOpCount(False)
869 return nSigOps
870
871
872def CheckBlock(block, fCheckPoW = True, fCheckMerkleRoot = True, cur_time=None):

Callers 1

CheckBlockFunction · 0.85

Calls 1

GetSigOpCountMethod · 0.80

Tested by

no test coverage detected