git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e4d5a81
)
fix weights del
author
alexhz
<balthazar@yandex.ru>
Fri, 8 Mar 2013 20:13:52 +0000 (20:13 +0000)
committer
alexhz
<balthazar@yandex.ru>
Fri, 8 Mar 2013 20:13:52 +0000 (20:13 +0000)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
9203af6
..
2248afd
100644
(file)
--- 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)