It looks like you're new here. If you want to get involved, click one of these buttons!
eth.getBlock('pending')
eth.getBlock('latest')
Comments
eth.getBlock('pending')
will return block which is not yet mined. If you want to get latest mined block, you should do:
eth.getBlock('latest')