From ddc0db49cd7e5e6da4c96af0d6862910d5fd96c3 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 19 May 2015 02:51:07 +0300 Subject: [PATCH] added totalDifficulty column --- dist/index.html | 2 +- views/index.jade | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/index.html b/dist/index.html index 526e6ac..6ea671b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -Ethereum Network Status
best block{{'#'}}{{ bestBlock | number}}
uncles  (current / last 50){{ bestStats.block.uncles.length }}/{{ uncleCount }}
last block{{ lastBlock | blockTimeFilter }}
avg block time{{ avgBlockTime | avgTimeFilter }}
avg network hashrate
difficulty{{ lastDifficulty | number }}
active nodes{{nodesActive}}/{{nodesTotal}}
gas price{{ bestStats.gasPrice.toString() | gasPriceFilter }}
page latency{{latency}} ms
uptime{{ upTimeTotal | upTimeFilter }}
block time
difficulty
block propagation
last blocks miners
{{miner.blocks}}
{{miner.miner | minerNameFilter : miner.name}}
uncle count  (25 blocks per bar)
transactions
gas spending
 
{{node.info.name}} ({{node.info.ip}})
{{node.stats | latencyFilter}}{{node.stats.peers}}{{node.stats.pending}}{{'#'}}{{ node.stats.block.number | number }}{{node.stats.block.hash | hashFilter}}{{node.stats.block.transactions.length || 0}}{{node.stats.block.uncles.length || 0}}{{node.stats.block.received | blockTimeFilter }}
{{node.stats.block.propagation | blockPropagationFilter}}
{{ node.stats.propagationAvg | blockPropagationFilter : '' }}{{ node.stats.uptime | upTimeFilter }}
\ No newline at end of file +Ethereum Network Status
best block{{'#'}}{{ bestBlock | number}}
uncles  (current / last 50){{ bestStats.block.uncles.length }}/{{ uncleCount }}
last block{{ lastBlock | blockTimeFilter }}
avg block time{{ avgBlockTime | avgTimeFilter }}
avg network hashrate
difficulty{{ lastDifficulty | number }}
active nodes{{nodesActive}}/{{nodesTotal}}
gas price{{ bestStats.gasPrice.toString() | gasPriceFilter }}
page latency{{latency}} ms
uptime{{ upTimeTotal | upTimeFilter }}
block time
difficulty
block propagation
last blocks miners
{{miner.blocks}}
{{miner.miner | minerNameFilter : miner.name}}
uncle count  (25 blocks per bar)
transactions
gas spending
 
{{node.info.name}} ({{node.info.ip}})
{{node.stats | latencyFilter}}{{node.stats.peers}}{{node.stats.pending}}{{'#'}}{{ node.stats.block.number | number }}{{node.stats.block.hash | hashFilter}}{{node.stats.block.totalDifficulty | number}}{{node.stats.block.transactions.length || 0}}{{node.stats.block.uncles.length || 0}}{{node.stats.block.received | blockTimeFilter }}
{{node.stats.block.propagation | blockPropagationFilter}}
{{ node.stats.propagationAvg | blockPropagationFilter : '' }}{{ node.stats.uptime | upTimeFilter }}
\ No newline at end of file diff --git a/views/index.jade b/views/index.jade index 09972e2..b4da4c4 100644 --- a/views/index.jade +++ b/views/index.jade @@ -166,6 +166,8 @@ block content th i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)") th.th-blockhash #[ ] + th.th-blockhash + i.icon-difficulty(data-toggle="tooltip", data-placement="top", title="Total difficulty", ng-click="orderTable(['-stats.block.totalDifficulty'], false)") th i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions", ng-click="orderTable(['-stats.block.transactions.length'], false)") th @@ -198,6 +200,8 @@ block content td(class="{{ node.stats | blockClass : bestBlock }}") {{'#'}}{{ node.stats.block.number | number }} td(class="{{ node.stats | blockClass : bestBlock }}") span.small {{node.stats.block.hash | hashFilter}} + td(class="{{ node.stats | blockClass : bestBlock }}") + span.small {{node.stats.block.totalDifficulty | number}} td(style="padding-left: 14px;") {{node.stats.block.transactions.length || 0}} td(style="padding-left: 14px;") {{node.stats.block.uncles.length || 0}} td(class="{{ node.stats.block.received | timeClass : node.stats.active }}") {{node.stats.block.received | blockTimeFilter }}