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