From 6d52259c11f53e9a90ffa70e7456839013c609ac Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 11 Jun 2018 03:52:51 +0200 Subject: [PATCH] history: prefer block algo field in case of algo change will not be used in normal cases, but you can temporary display 2 coin algos with that : in web/yaamp/modules/site/results/found_results.php @@ -19,6 +19,10 @@ WriteBoxHeader("Last $count Blocks ($algo)"); $criteria->condition .= " AND IFNULL(coin.visible,1)=1"; // ifnull for rental +if($algo == 'phi2') { + $criteria->condition .= " AND t.algo IN(:algo,'phi')"; + $criteria->params = array(':algo'=>$algo); +} else if($algo != 'all') { --- web/yaamp/modules/site/results/found_results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/yaamp/modules/site/results/found_results.php b/web/yaamp/modules/site/results/found_results.php index c181093..e37a636 100644 --- a/web/yaamp/modules/site/results/found_results.php +++ b/web/yaamp/modules/site/results/found_results.php @@ -90,7 +90,7 @@ foreach($db_blocks as $db_block) echo ''; echo ''; - echo ''.$link.' ('.$coin->algo.')'.$flags.''; + echo ''.$link.' ('.$db_block->algo.')'.$flags.''; echo ''.$reward.' '.$coin->symbol_show.''; echo ''.$difficulty.''; echo ''.$height.'';