block: fix timestamp check in checkBlock.