Merge pull request #195 from cubedro/develop

fixed frontent max block
This commit is contained in:
Marian OANCΞA 2015-06-17 04:21:01 +03:00
commit 3eafaa4ea7
3 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -543,12 +543,12 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
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 0;
// return 0;
}).stats.block.number;
if( bestBlock !== $scope.bestBlock )