adding getBlockByHeight method, and updating getBlock to getBlockByHash