updated propagation time

This commit is contained in:
cubedro 2015-04-02 18:58:53 +03:00
parent 03162fa64d
commit 23750fcff4

View File

@ -183,7 +183,7 @@ Node.prototype.getBlock = function(number)
try {
block = web3.eth.getBlock(number, true);
block.arrival = Date.now();
block.arrival = (new Date()).getTime();
block.propagation = block.arrival - (block.timestamp * 1000);
if(block.hash != '?' && typeof block.difficulty !== 'undefined')