From 9ceae22bb0b1cf7b0dd6e5465906a0c0c8244e5d Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 27 May 2016 09:20:01 +0200 Subject: [PATCH] explorer: do no limit block hash size --- web/yaamp/modules/explorer/ExplorerController.php | 2 +- web/yaamp/modules/explorer/coin.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/web/yaamp/modules/explorer/ExplorerController.php b/web/yaamp/modules/explorer/ExplorerController.php index b224ad4..b876738 100644 --- a/web/yaamp/modules/explorer/ExplorerController.php +++ b/web/yaamp/modules/explorer/ExplorerController.php @@ -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)); diff --git a/web/yaamp/modules/explorer/coin.php b/web/yaamp/modules/explorer/coin.php index 3dfcd89..4b1f519 100644 --- a/web/yaamp/modules/explorer/coin.php +++ b/web/yaamp/modules/explorer/coin.php @@ -82,7 +82,9 @@ for($i = $start; $i > max(1, $start-21); $i--) echo ''.$tx.''; echo ''.$confirms.''; - echo ''.$coin->createExplorerLink($hash, array('hash'=>$hash)).''; + echo ''; + echo $coin->createExplorerLink($hash, array('hash'=>$hash)); + echo ''; echo ""; }