From 23750fcff4193debdd5f04427290661bbef1210d Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 2 Apr 2015 18:58:53 +0300 Subject: [PATCH] updated propagation time --- lib/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index cea4b4c..d5bda0c 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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')