From 308921870d6a514c61399a694633c3f39b8e5216 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 30 Jul 2015 18:34:10 +0300 Subject: [PATCH] added genesis hash --- lib/utils/config.js | 1 + src-lite/js/controllers.js | 2 +- src/js/controllers.js | 7 +------ 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/utils/config.js b/lib/utils/config.js index 65b9b56..35a3a98 100644 --- a/lib/utils/config.js +++ b/lib/utils/config.js @@ -9,6 +9,7 @@ var trusted = [ '52.7.218.44', '52.7.205.152', '52.7.224.174', + '92.51.165.126', '::ffff:127.0.0.1', ]; diff --git a/src-lite/js/controllers.js b/src-lite/js/controllers.js index e16bd89..dcbb1ca 100644 --- a/src-lite/js/controllers.js +++ b/src-lite/js/controllers.js @@ -8,7 +8,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr) // Main Stats init // --------------- - $scope.frontierHash = '?'; + $scope.frontierHash = '0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa'; $scope.nodesTotal = 0; $scope.nodesActive = 0; $scope.bestBlock = 0; diff --git a/src/js/controllers.js b/src/js/controllers.js index 67a8a42..cf7218e 100644 --- a/src/js/controllers.js +++ b/src/js/controllers.js @@ -8,7 +8,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc // Main Stats init // --------------- - $scope.frontierHash = '?'; + $scope.frontierHash = '0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa'; $scope.nodesTotal = 0; $scope.nodesActive = 0; $scope.bestBlock = 0; @@ -559,11 +559,6 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc return parseInt(node.stats.block.number); }).stats; - if($scope.bestBlock === 1028201) - { - $scope.frontierHash = $scope.bestStats.block.hash; - } - $scope.lastBlock = $scope.bestStats.block.arrived; $scope.lastDifficulty = $scope.bestStats.block.difficulty; }