Removed negative blocktimes

This commit is contained in:
cubedro 2015-04-07 20:07:23 +03:00
parent bb1d54c4ac
commit ce0be1fe1e

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