From 20a9fc3e289d0f41cdc4edbecf544260b863b6eb Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 27 Oct 2013 02:51:03 +0100 Subject: [PATCH] Revert "[FIX] Fixed potential PPLNS issue" This reverts commit ee46e65fcae431da852240fb2a13e7f3f29b30e6. --- public/include/classes/share.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/share.class.php b/public/include/classes/share.class.php index c8fcc989..705c41e1 100644 --- a/public/include/classes/share.class.php +++ b/public/include/classes/share.class.php @@ -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 < ?