git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5a8dcd7
)
prevent status display exception when starting a new sharechain
author
Forrest Voight
<forrest.voight@gmail.com>
Sat, 18 Feb 2012 18:04:02 +0000 (13:04 -0500)
committer
Forrest Voight
<forrest.voight@gmail.com>
Sat, 18 Feb 2012 18:09:17 +0000 (13:09 -0500)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
ee6df21
..
c75488a
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-961,7
+961,7
@@
def main(args, net, datadir_path, merged_urls, worker_endpoint):
math.format(int(my_att_s)),
math.format_dt(dt),
math.format_binomial_conf(sum(1 for datum in datums if datum['dead']), len(datums), 0.95),
- math.format_dt(2**256 / tracker.shares[current_work.value['best_share_hash']].target / my_att_s) if my_att_s else '???',
+ math.format_dt(2**256 / tracker.shares[current_work.value['best_share_hash']].target / my_att_s) if my_att_s and current_work.value['best_share_hash'] else '???',
)
if height > 2: