electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b0796daee4b3d06e2da0db663a581b313799d6ea
parent fa6e9c18b9337e9119d1a4aa54d97975d08f7401
Author: ThomasV <thomasv@gitorious>
Date:   Tue,  4 Mar 2014 22:31:12 +0100

more legible output for scripts/peers

Diffstat:
Mscripts/peers | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/scripts/peers b/scripts/peers @@ -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" + +