Block Explorer
";
echo "";
showTableSorter('maintable', '{headers: {0: {sorter: false}, 9: {sorter: false}}}');
echo "";
echo "";
echo " ";
echo "Name ";
echo "Symbol ";
echo "Algo ";
echo "Version ";
echo "Height ";
echo "Difficulty ";
echo "Connections ";
echo "Network Hash ";
echo " ";
echo " ";
echo "";
$list = getdbolist('db_coins', "enable and visible order by name");
foreach($list as $coin)
{
if($coin->symbol == 'BTC') continue;
if(!empty($coin->symbol2)) continue;
$coin->version = substr($coin->version, 0, 20);
//if (!$coin->network_hash)
$coin->network_hash = controller()->memcache->get("yiimp-nethashrate-{$coin->symbol}");
if (!$coin->network_hash) {
$remote = new Bitcoin($coin->rpcuser, $coin->rpcpasswd, $coin->rpchost, $coin->rpcport);
if ($remote)
$info = $remote->getmininginfo();
if (isset($info['networkhashps'])) {
$coin->network_hash = $info['networkhashps'];
controller()->memcache->set("yiimp-nethashrate-{$coin->symbol}", $info['networkhashps'], 60);
}
}
$difficulty = Itoa2($coin->difficulty, 3);
$nethash = $coin->network_hash? strtoupper(Itoa2($coin->network_hash)).'H/s': '';
echo "";
echo "
";
echo "$coin->name ";
echo "$coin->symbol ";
echo "$coin->algo ";
echo "$coin->version ";
echo "$coin->block_height ";
echo "$difficulty ";
echo "$coin->connections ";
echo "$nethash ";
echo "";
if(!empty($coin->link_bitcointalk))
echo "forum ";
echo " ";
echo " ";
}
echo "";
echo "";
echo "