fixed frontent max block
This commit is contained in:
parent
80dc078839
commit
0ff2d03a05
2
dist/js/netstats.min.js
vendored
2
dist/js/netstats.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/netstats.min.js.map
vendored
2
dist/js/netstats.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -543,12 +543,12 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
|
|||||||
|
|
||||||
var bestBlock = _.max($scope.nodes, function (node)
|
var bestBlock = _.max($scope.nodes, function (node)
|
||||||
{
|
{
|
||||||
if( $scope.chains[node.stats.block.number].fork === node.stats.block.fork && $scope.chains[node.stats.block.number].score / $scope.maxScore >= 0.5 )
|
// if( $scope.chains[node.stats.block.number].fork === node.stats.block.fork && $scope.chains[node.stats.block.number].score / $scope.maxScore >= 0.5 )
|
||||||
{
|
// {
|
||||||
return parseInt(node.stats.block.number);
|
return parseInt(node.stats.block.number);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return 0;
|
// return 0;
|
||||||
}).stats.block.number;
|
}).stats.block.number;
|
||||||
|
|
||||||
if( bestBlock !== $scope.bestBlock )
|
if( bestBlock !== $scope.bestBlock )
|
||||||
|
Loading…
Reference in New Issue
Block a user