mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 23:41:35 +00:00
more legible output for scripts/peers
This commit is contained in:
parent
fa6e9c18b9
commit
b0796daee4
1 changed files with 6 additions and 7 deletions
|
@ -69,11 +69,10 @@ while reached_servers:
|
||||||
results[i.server] = r.get('result')
|
results[i.server] = r.get('result')
|
||||||
reached_servers.remove(i.server)
|
reached_servers.remove(i.server)
|
||||||
|
|
||||||
electrum.print_json(results)
|
errors = analyze(results).keys()
|
||||||
out = analyze(results)
|
|
||||||
if out:
|
for n,v in results.items():
|
||||||
print "faulty servers:"
|
print "%30s"%n, v['block_height'], v['utxo_root'], "error" if n in errors else "ok"
|
||||||
electrum.print_json(out)
|
|
||||||
else:
|
|
||||||
print "ok"
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue