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

Method is_coinbase

bitcoin/core/__init__.py:412–413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

410 f.write(struct.pack(b"<I", self.nLockTime))
411
412 def is_coinbase(self):
413 return len(self.vin) == 1 and self.vin[0].prevout.is_null()
414
415 def has_witness(self):
416 """True if witness"""

Callers 3

CheckTransactionFunction · 0.80
CheckBlockFunction · 0.80
test_is_coinbaseMethod · 0.80

Calls 1

is_nullMethod · 0.45

Tested by 1

test_is_coinbaseMethod · 0.64