pass whole block info for more data manipulation

This commit is contained in:
Marian Oancea
2015-02-08 17:51:16 +02:00
parent e8b751f591
commit 4da9cf8427
3 changed files with 5 additions and 8 deletions

View File

@@ -43,10 +43,7 @@ Node.prototype.update = function()
}
if(this.info.stats.peers != null) {
this.info.stats.block.height = parseInt(eth.number);
var block = eth.block(this.info.stats.block.height)
this.info.stats.block.hash = block.hash;
this.info.stats.block.timestamp = block.timestamp;
this.info.stats.block = eth.block(parseInt(eth.number));
this.info.stats.mining = eth.mining;
this.info.stats.active = true;
} else {