git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
0e3e48d
)
only cull verified shares if they do, in fact, exist
author
Forrest Voight
<forrest@forre.st>
Wed, 3 Aug 2011 18:39:53 +0000 (14:39 -0400)
committer
Forrest Voight
<forrest@forre.st>
Wed, 3 Aug 2011 18:39:53 +0000 (14:39 -0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
656cae0
..
1eeb0fa
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-383,7
+383,8
@@
class OkayTracker(bitcoin_data.Tracker):
if self.shares[share_hash].time_seen > time.time() - 30:
continue
self.remove(share_hash)
- self.verified.remove(share_hash)
+ if share_hash in self.verified.shares:
+ self.verified.remove(share_hash)
for tail, heads in list(self.tails.iteritems()):
continue