Revert "[FIX] Fixed potential PPLNS issue"

This reverts commit ee46e65fca.
This commit is contained in:
Sebastian Grewe 2013-10-27 02:51:03 +01:00
parent 3a0e2a9a13
commit 20a9fc3e28

View File

@ -326,7 +326,7 @@ class Share {
$stmt = $this->mysqli->prepare("
SELECT MIN(b.id) AS id FROM
(
SELECT id, @total := @total + IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty) / POW(2, (" . $this->config['difficulty'] . " - 16)) AS total
SELECT id, @total := @total + IF(difficulty=0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty) AS total
FROM $this->table, (SELECT @total := 0) AS a
WHERE our_result = 'Y'
AND id <= ? AND @total < ?