Merge pull request #63 from cubedro/develop

Removed negative blocktimes
This commit is contained in:
Marian OANCΞA 2015-04-07 20:07:43 +03:00
commit dc1617b6f4
1 changed files with 2 additions and 0 deletions

View File

@ -265,6 +265,8 @@ Node.prototype.calculateBlockTimes = function()
{
var diff = (key > 0 ? list[key - 1].timestamp : Math.floor(Date.now()/1000)) - block.timestamp;
diff = Math.max(diff, 0);
return diff;
});