MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / __init__

Method __init__

bitcoin/core/__init__.py:91–97  ·  view source on GitHub ↗
(self, hash=b'\x00'*32, n=0xffffffff)

Source from the content-addressed store, hash-verified

89 __slots__ = ['hash', 'n']
90
91 def __init__(self, hash=b'\x00'*32, n=0xffffffff):
92 if not len(hash) == 32:
93 raise ValueError('COutPoint: hash must be exactly 32 bytes; got %d bytes' % len(hash))
94 object.__setattr__(self, 'hash', hash)
95 if not (0 <= n <= 0xffffffff):
96 raise ValueError('COutPoint: n must be in range 0x0 to 0xffffffff; got %x' % n)
97 object.__setattr__(self, 'n', n)
98
99 @classmethod
100 def stream_deserialize(cls, f):

Callers

nothing calls this directly

Calls 1

__setattr__Method · 0.80

Tested by

no test coverage detected