block: fix timestamp check in checkBlock.
This commit is contained in:
parent
c1fbab35e1
commit
1052b7361c
@ -185,7 +185,7 @@ Block.prototype._checkBlock = function checkBlock() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check timestamp
|
// Check timestamp
|
||||||
if (+new Date(this.ts) > Date.now() + 2 * 60 * 60 * 1000) {
|
if (this.ts > (Date.now() + 2 * 60 * 60) / 1000) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user