File tree Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Expand file tree Collapse file tree 2 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ function createPeerContent(){
3333 $ content ['peers ' ] = $ peersData ["peers " ];
3434 $ content ['tPeers ' ] = count ($ peersData ["peers " ]);
3535 $ content ['nPeers ' ] = $ peersData ["newPeersCount " ];
36- //$content['segWitP'] = round($content['segWitC']/($content['tPeers'] > 0 ? $content['tPeers'] : 1),2)*100;
3736 $ content ['cTraffic ' ] = round ($ peersData ["cTraffic " ]/1000 ,2 );
3837 $ content ['cTrafficIn ' ] = round ($ peersData ["cTrafficIn " ]/1000 , 2 );
3938 $ content ['cTrafficOut ' ] = round ($ peersData ["cTrafficOut " ]/1000 , 2 );
Original file line number Diff line number Diff line change @@ -75,12 +75,6 @@ function getServices2($hex){
7575
7676function getVoting ($ hex ){
7777 $ vote = [];
78- if ($ hex [7 ] == 2 ) {
79- $ vote ['Segwit ' ] = true ;
80- }
81- if ($ hex [6 ] == 1 ) {
82- $ vote ['BIP91 ' ] = true ;
83- }
8478 return $ vote ;
8579}
8680
@@ -394,17 +388,12 @@ function getTopClients($peers){
394388
395389
396390function getMostPop ($ peers ){
397- $ segWitCount = 0 ;
398391 $ clCountAr = [];
399392 $ ctCountAr = [];
400393 $ htCountAr = [];
401394 $ result = [];
402395
403396 foreach ($ peers as $ peer ){
404- // Count Witness
405- if (isset ($ peer ->services ['Witness ' ]) AND $ peer ->services ['Witness ' ]){
406- $ segWitCount ++;
407- }
408397
409398 // Count Client 1
410399 if (array_key_exists ($ peer ->client ,$ clCountAr )){
@@ -447,7 +436,6 @@ function getMostPop($peers){
447436 $ result ['mpIspC ' ] = reset ($ htCountAr );
448437 }
449438
450- $ result ['segWitC ' ] = $ segWitCount ;
451439 return $ result ;
452440}
453441
You can’t perform that action at this time.
0 commit comments