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') {
This commit is contained in:
Tanguy Pruvot 2018-06-11 03:52:51 +02:00
parent 035d304150
commit 6d52259c11

View file

@ -90,7 +90,7 @@ foreach($db_blocks as $db_block)
echo '<tr class="ssrow">'; echo '<tr class="ssrow">';
echo '<td width="18px"><img width="16px" src="'.$coin->image.'"></td>'; echo '<td width="18px"><img width="16px" src="'.$coin->image.'"></td>';
echo '<td class="row"><b class="row">'.$link.'</b> ('.$coin->algo.')'.$flags.'</td>'; echo '<td class="row"><b class="row">'.$link.'</b> ('.$db_block->algo.')'.$flags.'</td>';
echo '<td class="row right"><b>'.$reward.' '.$coin->symbol_show.'</b></td>'; echo '<td class="row right"><b>'.$reward.' '.$coin->symbol_show.'</b></td>';
echo '<td class="row right" title="found '.$db_block->difficulty_user.'">'.$difficulty.'</td>'; echo '<td class="row right" title="found '.$db_block->difficulty_user.'">'.$difficulty.'</td>';
echo '<td class="row right">'.$height.'</td>'; echo '<td class="row right">'.$height.'</td>';