Skip to content

Commit 985cf91

Browse files
committed
Clean up segwit
1 parent a2d98d5 commit 985cf91

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/Content.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

src/Utility.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ function getServices2($hex){
7575

7676
function 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

396390
function 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

0 commit comments

Comments
 (0)