Revert "[FIX] Fixed potential PPLNS issue"
This reverts commit ee46e65fca.
This commit is contained in:
parent
3a0e2a9a13
commit
20a9fc3e28
@ -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 < ?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user