diff --git a/lib/bcoin/block.js b/lib/bcoin/block.js index ac5adda1..2460df32 100644 --- a/lib/bcoin/block.js +++ b/lib/bcoin/block.js @@ -185,7 +185,7 @@ Block.prototype._checkBlock = function checkBlock() { } // Check timestamp - if (+new Date(this.ts) > Date.now() + 2 * 60 * 60 * 1000) { + if (this.ts > (Date.now() + 2 * 60 * 60) / 1000) { return false; }