make sure blocks aren't skewed to future
This commit is contained in:
parent
c81f017cde
commit
7c3a9fb6e9
@ -33,4 +33,7 @@ function verifyTime(time){
|
||||
if ((epoch - time) > maxBlockAge){
|
||||
throw new Error("Block is too old")
|
||||
}
|
||||
if (time > (epoch + 60)){
|
||||
throw new Error("Block is skewed to the future")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user