more legible output for scripts/peers
This commit is contained in:
parent
fa6e9c18b9
commit
b0796daee4
|
@ -69,11 +69,10 @@ while reached_servers:
|
|||
results[i.server] = r.get('result')
|
||||
reached_servers.remove(i.server)
|
||||
|
||||
electrum.print_json(results)
|
||||
out = analyze(results)
|
||||
if out:
|
||||
print "faulty servers:"
|
||||
electrum.print_json(out)
|
||||
else:
|
||||
print "ok"
|
||||
errors = analyze(results).keys()
|
||||
|
||||
for n,v in results.items():
|
||||
print "%30s"%n, v['block_height'], v['utxo_root'], "error" if n in errors else "ok"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue