git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
64e62fa
)
fixed patron_sendmany
author
Forrest Voight
<forrest.voight@gmail.com>
Tue, 8 May 2012 14:15:54 +0000 (10:15 -0400)
committer
Forrest Voight
<forrest.voight@gmail.com>
Tue, 8 May 2012 14:15:54 +0000 (10:15 -0400)
p2pool/web.py
patch
|
blob
|
history
diff --git
a/p2pool/web.py
b/p2pool/web.py
index
0e5af36
..
5338e15
100644
(file)
--- a/
p2pool/web.py
+++ b/
p2pool/web.py
@@
-82,11
+82,11
@@
def get_web_root(tracker, current_work, current_work2, get_current_txouts, datad
return 'need total argument. go to patron_sendmany/<TOTAL>'
total = int(float(total)*1e8)
trunc = int(float(trunc)*1e8)
- return dict(
+ return json.dumps(dict(
(bitcoin_data.script2_to_address(script, net.PARENT), value/1e8)
for script, value in get_current_scaled_txouts(total, trunc).iteritems()
if bitcoin_data.script2_to_address(script, net.PARENT) is not None
- )
+ ))
def get_local_rates():
miner_hash_rates = {}