git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8805a9c
)
made desired versions graph lookbehind not exceed chain length
author
Forrest Voight
<forrest@forre.st>
Mon, 15 Oct 2012 04:46:19 +0000 (
00:46
-0400)
committer
Forrest Voight
<forrest@forre.st>
Mon, 15 Oct 2012 06:14:56 +0000 (
02:14
-0400)
p2pool/web.py
patch
|
blob
|
history
diff --git
a/p2pool/web.py
b/p2pool/web.py
index
329dd11
..
ec7b461
100644
(file)
--- a/
p2pool/web.py
+++ b/
p2pool/web.py
@@
-407,7
+407,7
@@
def get_web_root(tracker, bitcoind_work, get_current_txouts, datadir_path, net,
def add_point():
if tracker.get_height(best_share_var.value) < 10:
return None
- lookbehind = min(tracker.get_height(best_share_var.value), 3600//net.SHARE_PERIOD)
+ lookbehind = min(net.CHAIN_LENGTH, 60*60//net.SHARE_PERIOD, tracker.get_height(best_share_var.value))
t = time.time()
hd.datastreams['pool_rates'].add_datum(t, p2pool_data.get_stale_counts(tracker, best_share_var.value, lookbehind, rates=True))