git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cde979d
)
count all stale types
author
Forrest Voight
<forrest@forre.st>
Mon, 19 Mar 2012 17:14:57 +0000 (13:14 -0400)
committer
Forrest Voight
<forrest@forre.st>
Mon, 19 Mar 2012 17:15:08 +0000 (13:15 -0400)
p2pool/data.py
patch
|
blob
|
history
diff --git
a/p2pool/data.py
b/p2pool/data.py
index
0ec92a8
..
a36fcd0
100644
(file)
--- a/
p2pool/data.py
+++ b/
p2pool/data.py
@@
-485,7
+485,7
@@
def get_pool_attempts_per_second(tracker, previous_share_hash, dist, min_work=Fa
return attempts/time
def get_average_stale_prop(tracker, share_hash, lookbehind):
- stales = sum(1 for share in tracker.get_chain(share_hash, lookbehind) if share.share_data['stale_info'] in [253, 254])
+ stales = sum(1 for share in tracker.get_chain(share_hash, lookbehind) if share.share_data['stale_info'] != 0)
return stales/(lookbehind + stales)
def get_expected_payouts(tracker, best_share_hash, block_target, subsidy, net):