Fix: Display proper PPS value
* Fixes: Wrong PPS value before the first block is found Fixes #617
This commit is contained in:
parent
408ebf3b0b
commit
2db6dba482
@ -65,7 +65,7 @@ $aGlobal = array(
|
|||||||
|
|
||||||
// Special calculations for PPS Values based on reward_type setting and/or available blocks
|
// Special calculations for PPS Values based on reward_type setting and/or available blocks
|
||||||
if ($config['reward_type'] != 'block') {
|
if ($config['reward_type'] != 'block') {
|
||||||
$aGlobal['ppsvalue'] = number_format(round(50 / (pow(2,32) * $dDifficulty) * pow(2, $config['difficulty']), 12) ,12);
|
$aGlobal['ppsvalue'] = number_format(round($config['reward'] / (pow(2,32) * $dDifficulty) * pow(2, $config['difficulty']), 12) ,12);
|
||||||
} else {
|
} else {
|
||||||
// Try to find the last block value and use that for future payouts, revert to fixed reward if none found
|
// Try to find the last block value and use that for future payouts, revert to fixed reward if none found
|
||||||
if ($aLastBlock = $block->getLast()) {
|
if ($aLastBlock = $block->getLast()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user