From 53da013fab512398d1cccff0f41addd8c515e574 Mon Sep 17 00:00:00 2001 From: obigal Date: Wed, 3 Jul 2013 09:10:48 -0400 Subject: [PATCH] Update pps_payout.php --- cronjobs/pps_payout.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/cronjobs/pps_payout.php b/cronjobs/pps_payout.php index 5585292c..58c9b870 100755 --- a/cronjobs/pps_payout.php +++ b/cronjobs/pps_payout.php @@ -71,31 +71,6 @@ if ($config['pps']['reward']['type'] == 'blockavg' && $block->getBlockCount() > $pps_value = number_format(round($pps_reward / (pow(2,32) * $dDifficulty) * pow(2, $config['pps_target']), 12) ,12); //$pps_value = number_format(round((1/(65536 * $dDifficulty) * $pps_reward), 12) ,12); -/** -if ($config['reward_type'] != 'block') { - $pps_value = number_format(round($config['reward'] / (pow(2,32) * $dDifficulty) * pow(2, $config['pps_target']), 12) ,12); -} else { - // Try to find the last block value and use that for future payouts, revert to fixed reward if none found - if ($aLastBlock = $block->getLast()) { - $pps_value = number_format(round($aLastBlock['amount'] / (pow(2,32) * $dDifficulty) * pow(2, $config['pps_target']), 12) ,12); - } else { - $pps_value = number_format(round($config['reward'] / (pow(2,32) * $dDifficulty) * pow(2, $config['pps_target']), 12) ,12); - } -} -**/ -/** -if ($config['reward_type'] != 'block') { - $pps_value = number_format(round((1/(65536 * $dDifficulty) * $config['reward']), 12) ,12); -} else { - // Try to find the last block value and use that for future payouts, revert to fixed reward if none found - if ($aLastBlock = $block->getLast()) { - $pps_value = number_format(round((1/(65536 * $dDifficulty) * $aLastBlock['amount']), 12) ,12); - } else { - $pps_value = number_format(round((1/(65536 * $dDifficulty) * $config['reward']), 12) ,12); - } -} -**/ - // Find our last share accounted and last inserted share for PPS calculations $iPreviousShareId = $setting->getValue('pps_last_share_id'); $iLastShareId = $share->getLastInsertedShareId();