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

Method __init__

bitcoin/core/__init__.py:472–488  ·  view source on GitHub ↗
(self, vin=None, vout=None, nLockTime=0, nVersion=1, witness=None)

Source from the content-addressed store, hash-verified

470 __slots__ = []
471
472 def __init__(self, vin=None, vout=None, nLockTime=0, nVersion=1, witness=None):
473 if not (0 <= nLockTime <= 0xffffffff):
474 raise ValueError('CTransaction: nLockTime must be in range 0x0 to 0xffffffff; got %x' % nLockTime)
475 self.nLockTime = nLockTime
476
477 if vin is None:
478 vin = []
479 self.vin = vin
480
481 if vout is None:
482 vout = []
483 self.vout = vout
484 self.nVersion = nVersion
485
486 if witness is None:
487 witness = CTxWitness([CTxInWitness() for dummy in range(len(vin))])
488 self.wit = witness
489
490 @classmethod
491 def from_tx(cls, tx):

Callers

nothing calls this directly

Calls 2

CTxWitnessClass · 0.85
CTxInWitnessClass · 0.85

Tested by

no test coverage detected