This commit is contained in:
Arionum
2018-01-11 20:25:39 +02:00
parent 05e5c06ce9
commit bb94575f47
3 changed files with 51 additions and 8 deletions

View File

@@ -121,6 +121,12 @@ echo "Mempool size: $res\n";
} else echo "$x[hostname] ->ok \n";
}
}elseif($cmd=="peers-block"){
$r=$db->run("SELECT * FROM peers");
foreach($r as $x){
$a=peer_post($x['hostname']."/peer.php?q=currentBlock",array(),5);
echo "$x[hostname]\t$a[height]\n";
}
} else {