git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
960cd21
)
only remove a limited number of shares at a time in order to reduce latency spikes
author
Forrest Voight
<forrest@forre.st>
Tue, 23 Aug 2011 02:38:42 +0000 (22:38 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 23 Aug 2011 02:38:42 +0000 (22:38 -0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
96019fa
..
fd3e520
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-370,7
+370,7
@@
class OkayTracker(bitcoin_data.Tracker):
# eat away at heads
if scores:
- while True:
+ for i in xrange(1000):
to_remove = set()
for share_hash, tail in self.heads.iteritems():
if share_hash in scores[-5:]:
@@
-392,7
+392,7
@@
class OkayTracker(bitcoin_data.Tracker):
#print "_________", to_remove
# drop tails
- while True:
+ for i in xrange(1000):
to_remove = set()
for tail, heads in self.tails.iteritems():
if min(self.get_height(head) for head in heads) < 2*self.net.CHAIN_LENGTH + 10: