minor improvements to scripts
This commit is contained in:
@@ -16,5 +16,5 @@ callback = lambda _,result: electrum.print_json(result.get('result'))
|
|||||||
interface.send([('blockchain.headers.subscribe',[])], callback)
|
interface.send([('blockchain.headers.subscribe',[])], callback)
|
||||||
|
|
||||||
# 3. wait for results
|
# 3. wait for results
|
||||||
while True:
|
while interface.is_connected:
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ while reached_servers:
|
|||||||
errors = analyze(results).keys()
|
errors = analyze(results).keys()
|
||||||
|
|
||||||
for n,v in results.items():
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user