Merge pull request #230 from cubedro/develop
Added olympic block #1028201 hash display box
This commit is contained in:
commit
cf4fdf252a
@ -8,6 +8,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
|
|||||||
// Main Stats init
|
// Main Stats init
|
||||||
// ---------------
|
// ---------------
|
||||||
|
|
||||||
|
$scope.frontierHash = '?';
|
||||||
$scope.nodesTotal = 0;
|
$scope.nodesTotal = 0;
|
||||||
$scope.nodesActive = 0;
|
$scope.nodesActive = 0;
|
||||||
$scope.bestBlock = 0;
|
$scope.bestBlock = 0;
|
||||||
@ -558,6 +559,11 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
|
|||||||
return parseInt(node.stats.block.number);
|
return parseInt(node.stats.block.number);
|
||||||
}).stats;
|
}).stats;
|
||||||
|
|
||||||
|
if($scope.bestBlock === 1028201)
|
||||||
|
{
|
||||||
|
$scope.frontierHash = $scope.bestStats.block.hash;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.lastBlock = $scope.bestStats.block.arrived;
|
$scope.lastBlock = $scope.bestStats.block.arrived;
|
||||||
$scope.lastDifficulty = $scope.bestStats.block.difficulty;
|
$scope.lastDifficulty = $scope.bestStats.block.difficulty;
|
||||||
}
|
}
|
||||||
|
@ -146,6 +146,14 @@ block content
|
|||||||
//- div.col-xs-12
|
//- div.col-xs-12
|
||||||
nodemap#mapHolder(data="map")
|
nodemap#mapHolder(data="map")
|
||||||
|
|
||||||
|
div.col-xs-12.stats-boxes
|
||||||
|
div.row.second-row
|
||||||
|
div.col-xs-12.stat-holder.box
|
||||||
|
div.active-nodes.text-orange
|
||||||
|
i.icon-hashrate
|
||||||
|
span.small-title Block #1028201 hash
|
||||||
|
span.small-value {{frontierHash}}
|
||||||
|
|
||||||
//- div.clearfix
|
//- div.clearfix
|
||||||
|
|
||||||
div.row(ng-cloak, style="padding-top: 10px")
|
div.row(ng-cloak, style="padding-top: 10px")
|
||||||
|
Loading…
Reference in New Issue
Block a user