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

Method has_witness

bitcoin/core/__init__.py:415–417  ·  view source on GitHub ↗

True if witness

(self)

Source from the content-addressed store, hash-verified

413 return len(self.vin) == 1 and self.vin[0].prevout.is_null()
414
415 def has_witness(self):
416 """True if witness"""
417 return not self.wit.is_null()
418
419 def __repr__(self):
420 return "CTransaction(%r, %r, %i, %i, %r)" % (self.vin, self.vout,

Callers 1

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected