explorer: do no limit block hash size

This commit is contained in:
Tanguy Pruvot 2016-05-27 09:20:01 +02:00
parent 74dc0b1e03
commit 9ceae22bb0
2 changed files with 4 additions and 2 deletions

View file

@ -90,7 +90,7 @@ class ExplorerController extends CommonController
}
if($coin && !empty($hash) && ctype_xdigit($hash))
$this->render('block', array('coin'=>$coin, 'hash'=>substr($hash, 0, 64)));
$this->render('block', array('coin'=>$coin, 'hash'=>$hash));
else if($coin)
$this->render('coin', array('coin'=>$coin));

View file

@ -82,7 +82,9 @@ for($i = $start; $i > max(1, $start-21); $i--)
echo '<td>'.$tx.'</td>';
echo '<td>'.$confirms.'</td>';
echo '<td><span class="monospace">'.$coin->createExplorerLink($hash, array('hash'=>$hash)).'</span></td>';
echo '<td style="overflow-x: hidden; max-width:800px;"><span class="monospace">';
echo $coin->createExplorerLink($hash, array('hash'=>$hash));
echo '</span></td>';
echo "</tr>";
}