Return the number of blocks in the longest block chain
(self)
| 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. |