Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/p2pool/skiplists.py b/p2pool/skiplists.py
- index d14f306..aeae66c 100644
- --- a/p2pool/skiplists.py
- +++ b/p2pool/skiplists.py
- @@ -20,7 +20,7 @@ class WeightsSkipList(forest.TrackerSkipList):
- if total_weight1 + total_weight2 > desired_weight and share_count2 == 1:
- assert (desired_weight - total_weight1) % 65535 == 0
- script, = weights2.iterkeys()
- - new_weights = dict(script=(desired_weight - total_weight1)//65535*weights2[script]//(total_weight2//65535))
- + new_weights = {script: (desired_weight - total_weight1)//65535*weights2[script]//(total_weight2//65535)}
- 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)
- return share_count1 + share_count2, (weights_list, weights2), total_weight1 + total_weight2, total_donation_weight1 + total_donation_weight2
Advertisement
Add Comment
Please, Sign In to add comment