MCPcopy Create free account
hub / github.com/jimmysong/programmingbitcoin / __init__

Method __init__

code-ch08/tx.py:252–259  ·  view source on GitHub ↗
(self, prev_tx, prev_index, script_sig=None, sequence=0xffffffff)

Source from the content-addressed store, hash-verified

250class TxIn:
251
252 def __init__(self, prev_tx, prev_index, script_sig=None, sequence=0xffffffff):
253 self.prev_tx = prev_tx
254 self.prev_index = prev_index
255 if script_sig is None:
256 self.script_sig = Script()
257 else:
258 self.script_sig = script_sig
259 self.sequence = sequence
260
261 def __repr__(self):
262 return '{}:{}'.format(

Callers

nothing calls this directly

Calls 1

ScriptClass · 0.90

Tested by

no test coverage detected