removed arrival and propagation
This commit is contained in:
parent
7390d918cd
commit
b3d87fa542
@ -178,8 +178,7 @@ Node.prototype.getBlock = function(number)
|
|||||||
number: 0,
|
number: 0,
|
||||||
hash: '?',
|
hash: '?',
|
||||||
difficulty: 0,
|
difficulty: 0,
|
||||||
timestamp: 0,
|
timestamp: 0
|
||||||
arrival: 0
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if(typeof number === 'undefined'){
|
if(typeof number === 'undefined'){
|
||||||
@ -200,8 +199,6 @@ Node.prototype.getBlock = function(number)
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
block = web3.eth.getBlock(number, true);
|
block = web3.eth.getBlock(number, true);
|
||||||
block.arrival = (new Date()).getTime();
|
|
||||||
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