electrum

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

commit 55e4aa2a4750b8600717becf49a2635867c5be8b
parent f352832879434ad61cf8e337ae1488aa4dd1f2dd
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 10 Mar 2014 16:14:45 +0100

minor improvements to scripts

Diffstat:
Mscripts/block_headers | 2+-
Mscripts/peers | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/block_headers b/scripts/block_headers @@ -16,5 +16,5 @@ callback = lambda _,result: electrum.print_json(result.get('result')) interface.send([('blockchain.headers.subscribe',[])], callback) # 3. wait for results -while True: +while interface.is_connected: time.sleep(1) diff --git a/scripts/peers b/scripts/peers @@ -72,7 +72,7 @@ while reached_servers: 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" + print "%40s"%n, v['block_height'], v['utxo_root'], "error" if n in errors else "ok"