View difference between Paste ID: 0RfRWZ21 and 6uHJqHpz
SHOW: | | - or go back to the newest paste.
1
diff --git a/p2pool/skiplists.py b/p2pool/skiplists.py
2
index d14f306..aeae66c 100644
3
--- a/p2pool/skiplists.py
4
+++ b/p2pool/skiplists.py
5
@@ -20,7 +20,7 @@ class WeightsSkipList(forest.TrackerSkipList):
6
         if total_weight1 + total_weight2 > desired_weight and share_count2 == 1:
7
             assert (desired_weight - total_weight1) % 65535 == 0
8
             script, = weights2.iterkeys()
9
-            new_weights = dict(script=(desired_weight - total_weight1)//65535*weights2[script]//(total_weight2//65535))
10
+            new_weights = {script: (desired_weight - total_weight1)//65535*weights2[script]//(total_weight2//65535)}
11-
             return share_count1 + share_count2, (weights_list, new_weights), desired_weight, total_donation_weight1 + (desired_weight - tota
11+
             return share_count1 + share_count2, (weights_list, new_weights), desired_weight, total_donation_weight1 + (desired_weight - total_weight1)//65535*total_donation_weight2//(total_weight2//65535)
12-
         return share_count1 + share_count2, (weights_list, weights2), total_weight1 + total_weight2, total_donation_weight1 + total_donation
12+
         return share_count1 + share_count2, (weights_list, weights2), total_weight1 + total_weight2, total_donation_weight1 + total_donation_weight2