Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
CheckTransaction
Function · 0.80
CheckBlock
Function · 0.80
test_is_coinbase
Method · 0.80
Calls
1
is_null
Method · 0.45
Tested by
1
test_is_coinbase
Method · 0.64