This is a simple PR: add support for getting a block by its height via RPC call getblock
.
Instead of 2 calls bitcoin-cli getblockhash 0
+ bitcoin-cli getblock <hash>
we call directly bitcoin-cli getblock 0
.
Note: it will continue to support via block hash.