Merge pull request #63 from cubedro/develop
Removed negative blocktimes
This commit is contained in:
commit
dc1617b6f4
@ -265,6 +265,8 @@ Node.prototype.calculateBlockTimes = function()
|
|||||||
{
|
{
|
||||||
var diff = (key > 0 ? list[key - 1].timestamp : Math.floor(Date.now()/1000)) - block.timestamp;
|
var diff = (key > 0 ? list[key - 1].timestamp : Math.floor(Date.now()/1000)) - block.timestamp;
|
||||||
|
|
||||||
|
diff = Math.max(diff, 0);
|
||||||
|
|
||||||
return diff;
|
return diff;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user