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

Method getblockcount

bitcoin/rpc.py:511–513  ·  view source on GitHub ↗

Return the number of blocks in the longest block chain

(self)

Source from the content-addressed store, hash-verified

509 return CBlock.deserialize(unhexlify_str(r))
510
511 def getblockcount(self):
512 """Return the number of blocks in the longest block chain"""
513 return self._call('getblockcount')
514
515 def getblockhash(self, height):
516 """Return hash of block in best-block-chain at height.

Callers

nothing calls this directly

Calls 1

_callMethod · 0.45

Tested by

no test coverage detected