yaamp_fee() comment a few unused sql queries (on shares)

This commit is contained in:
Tanguy Pruvot 2017-12-08 23:45:25 +01:00
parent e47e40aea6
commit 6c09e5f1b9

View file

@ -254,7 +254,7 @@ function yaamp_fee($algo)
$fee = controller()->memcache->get("yaamp_fee-$algo");
if($fee) return $fee;
$norm = yaamp_get_algo_norm($algo);
/* $norm = yaamp_get_algo_norm($algo);
if($norm == 0) $norm = 1;
$hashrate = getdbosql('db_hashrate', "algo=:algo order by time desc", array(':algo'=>$algo));
@ -269,6 +269,7 @@ function yaamp_fee($algo)
// $fee = round(log($hashrate->hashrate * $norm / 1000000 / $hashrate->difficulty + 1), 1) + YAAMP_FEES_MINING;
// $fee = round(log($rate * $norm / 2000000 / $hashrate->difficulty + 1), 1) + YAAMP_FEES_MINING;
*/
$fee = YAAMP_FEES_MINING;
// local fees config