added clean blocks higher than best block

This commit is contained in:
cubedro
2015-06-09 06:25:34 +03:00
parent c26ba17cd4
commit d9ae085890
5 changed files with 32 additions and 17 deletions

View File

@@ -485,7 +485,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
return parseInt(node.stats.block.number);
}).stats.block.number;
if( bestBlock > $scope.bestBlock )
if( bestBlock !== $scope.bestBlock )
{
$scope.bestBlock = bestBlock;
$scope.bestStats = _.max($scope.nodes, function (node) {