Use poolhash rate if nethash is smaller
This should avoid some confusion for coins where the network hashrate drops under the pool hashrate due to slow block finding rates. Fixes #378
This commit is contained in:
parent
9601f075ce
commit
7099b2cc04
@ -28,6 +28,9 @@ $iCurrentActiveWorkers = $worker->getCountAllActiveWorkers();
|
||||
$iCurrentPoolHashrate = $statistics->getCurrentHashrate();
|
||||
$iCurrentPoolShareRate = $statistics->getCurrentShareRate();
|
||||
|
||||
// Avoid confusion, ensure our nethash isn't higher than poolhash
|
||||
if ($iCurrentPoolHashrate > $dNetworkHashrate) $dNetworkHashrate = $iCurrentPoolHashrate;
|
||||
|
||||
// Global data for Smarty
|
||||
$aGlobal = array(
|
||||
'slogan' => $config['website']['slogan'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user