changed propagation calculation to miliseconds
This commit is contained in:
parent
b7ce4ddf2b
commit
cbf3803740
@ -158,8 +158,8 @@ Node.prototype.getBlock = function(number)
|
||||
|
||||
try {
|
||||
block = web3.eth.block(number);
|
||||
block.arrival = Math.floor(Date.now()/1000);
|
||||
block.propagation = block.arrival - block.timestamp;
|
||||
block.arrival = Date.now();
|
||||
block.propagation = block.arrival - (block.timestamp * 1000);
|
||||
|
||||
if(block.hash != '?' && typeof block.difficulty !== 'undefined')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user