From: alexhz Date: Fri, 8 Mar 2013 20:13:52 +0000 (+0000) Subject: fix weights del X-Git-Url: https://git.novaco.in/?p=p2pool.git;a=commitdiff_plain;h=728aef1dfcc5b379ad967ebd8a08454124d404ab fix weights del --- diff --git a/p2pool/data.py b/p2pool/data.py index 9203af6..2248afd 100644 --- a/p2pool/data.py +++ b/p2pool/data.py @@ -189,7 +189,7 @@ class Share(object): for x in raw_amounts.keys(): if raw_amounts[x] < minout and x not in [this_script, DONATION_SCRIPT]: total_remowed_weight = total_remowed_weight + weights[x] - del weights[x] + weights.pop(x) total_weight = total_weight - total_remowed_weight assert total_weight == sum(weights.itervalues()) + donation_weight, (total_weight, sum(weights.itervalues()) + donation_weight)