added visible node IP
This commit is contained in:
parent
4da9cf8427
commit
8f7c3ea2b6
@ -12,7 +12,7 @@ var Node = function Node(options, id)
|
||||
peers: 0,
|
||||
mining: false,
|
||||
block: {
|
||||
height: 0,
|
||||
number: 0,
|
||||
hash: '?',
|
||||
timestamp: 0
|
||||
},
|
||||
@ -44,6 +44,9 @@ Node.prototype.update = function()
|
||||
|
||||
if(this.info.stats.peers != null) {
|
||||
this.info.stats.block = eth.block(parseInt(eth.number));
|
||||
if(this.info.stats.block.hash != '?'){
|
||||
this.info.stats.block.difficulty = this.web3.toDecimal(this.info.stats.block.difficulty);
|
||||
}
|
||||
this.info.stats.mining = eth.mining;
|
||||
this.info.stats.active = true;
|
||||
} else {
|
||||
|
@ -76,6 +76,7 @@ block content
|
||||
tr(ng-repeat='node in nodes', class="{{ node.stats | mainClass : bestBlock }}")
|
||||
td(rel="{{node.id}}")
|
||||
span(data-toggle="tooltip", data-placement="top", data-original-title="{{node.geo | geoTooltip}}") {{node.name}}
|
||||
div.small {{node.rpcHost}}
|
||||
td {{node.type}}
|
||||
td(class="{{ node.stats.peers | peerClass }}") {{node.stats.peers}}
|
||||
td(class="{{ node.stats.mining | miningClass }}")
|
||||
|
Loading…
Reference in New Issue
Block a user