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

Method __init__

bitcoin/core/__init__.py:153–159  ·  view source on GitHub ↗
(self, prevout=COutPoint(), scriptSig=CScript(), nSequence = 0xffffffff)

Source from the content-addressed store, hash-verified

151 __slots__ = ['prevout', 'scriptSig', 'nSequence']
152
153 def __init__(self, prevout=COutPoint(), scriptSig=CScript(), nSequence = 0xffffffff):
154 if not (0 <= nSequence <= 0xffffffff):
155 raise ValueError('CTxIn: nSequence must be an integer between 0x0 and 0xffffffff; got %x' % nSequence)
156 object.__setattr__(self, 'nSequence', nSequence)
157
158 object.__setattr__(self, 'prevout', prevout)
159 object.__setattr__(self, 'scriptSig', scriptSig)
160
161 @classmethod
162 def stream_deserialize(cls, f):

Callers 1

__init__Method · 0.45

Calls 3

COutPointClass · 0.85
CScriptClass · 0.85
__setattr__Method · 0.80

Tested by

no test coverage detected