fixed 0x0000... coinbase miner name

This commit is contained in:
cubedro 2015-05-18 18:33:20 +03:00
parent 6f6e904412
commit b411653cbd
3 changed files with 6 additions and 3 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

@ -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')