Merge pull request #130 from cubedro/develop
Fixed 0x0000... coinbase miner name
This commit is contained in:
commit
5375a35c44
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
@ -127,7 +127,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr)
|
|||||||
var index = findIndex({id: data.id});
|
var index = findIndex({id: data.id});
|
||||||
|
|
||||||
if(typeof $scope.nodes[index].stats !== 'undefined') {
|
if(typeof $scope.nodes[index].stats !== 'undefined') {
|
||||||
|
|
||||||
if($scope.nodes[index].stats.block.number < data.stats.block.number)
|
if($scope.nodes[index].stats.block.number < data.stats.block.number)
|
||||||
{
|
{
|
||||||
var best = _.max($scope.nodes, function(node) {
|
var best = _.max($scope.nodes, function(node) {
|
||||||
@ -251,6 +251,9 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr)
|
|||||||
if(value.name !== false)
|
if(value.name !== false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(value.miner === "0x0000000000000000000000000000000000000000")
|
||||||
|
return;
|
||||||
|
|
||||||
var name = _.result(_.find(_.pluck($scope.nodes, 'info'), 'coinbase', value.miner), 'name');
|
var name = _.result(_.find(_.pluck($scope.nodes, 'info'), 'coinbase', value.miner), 'name');
|
||||||
|
|
||||||
if(typeof name !== 'undefined')
|
if(typeof name !== 'undefined')
|
||||||
|
Loading…
Reference in New Issue
Block a user