From 9994bbc56f97af4911d5a852e26b94b8ed476382 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 11 Mar 2014 09:37:39 +0100 Subject: [PATCH] sort by height --- scripts/peers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/peers b/scripts/peers index a67be7c19..efc16695d 100755 --- 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"