block: fix timestamp check in checkBlock.

This commit is contained in:
Christopher Jeffrey 2014-05-24 18:05:20 -05:00
parent c1fbab35e1
commit 1052b7361c

View File

@ -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;
}