commit 9994bbc56f97af4911d5a852e26b94b8ed476382
parent 0c786be46f0530d701092e1afeb744a02c3cf14e
Author: ThomasV <thomasv@gitorious>
Date: Tue, 11 Mar 2014 09:37:39 +0100
sort by height
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/peers b/scripts/peers
@@ -71,7 +71,7 @@ while reached_servers:
errors = analyze(results).keys()
-for n,v in results.items():
+for n,v in sorted(results.items(), key=lambda x:x[1]['block_height']):
print "%40s"%n, v['block_height'], v['utxo_root'], "error" if n in errors else "ok"