From 6c09e5f1b909f5f6aaf9bdec490d974d6cad7018 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 8 Dec 2017 23:45:25 +0100 Subject: [PATCH] yaamp_fee() comment a few unused sql queries (on shares) --- web/yaamp/core/functions/yaamp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/yaamp/core/functions/yaamp.php b/web/yaamp/core/functions/yaamp.php index 20222cd..b10285a 100755 --- a/web/yaamp/core/functions/yaamp.php +++ b/web/yaamp/core/functions/yaamp.php @@ -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