electrum

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

commit ad9f7411d710a57d0f680ba23179be5de5ac887d
parent d3104a17b7043815f01d54dd947f7a32c563850d
Author: ThomasV <thomasv@gitorious>
Date:   Sun,  5 Jul 2015 23:28:05 +0200

peers script: handle missing fields

Diffstat:
Mscripts/peers | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/peers b/scripts/peers @@ -35,8 +35,8 @@ results = util.send_request(peers, {'method':'blockchain.headers.subscribe','par errors = analyze(results).keys() -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" +for n,v in sorted(results.items(), key=lambda x:x[1].get('block_height')): + print "%40s"%n, v.get('block_height'), v.get('utxo_root'), "error" if n in errors else "ok"