(self, hash=b'\x00'*32, n=0xffffffff)
| 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): |
nothing calls this directly
no test coverage detected