git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6631ab9
)
on_header: return early if block_height is missing
author
ThomasV
<thomasv@gitorious>
Thu, 12 Jun 2014 13:49:53 +0000 (15:49 +0200)
committer
ThomasV
<thomasv@gitorious>
Thu, 12 Jun 2014 13:49:53 +0000 (15:49 +0200)
lib/network.py
patch
|
blob
|
history
diff --git
a/lib/network.py
b/lib/network.py
index
51b8407
..
a6be0a4
100644
(file)
--- a/
lib/network.py
+++ b/
lib/network.py
@@
-371,8
+371,11
@@
class Network(threading.Thread):
def on_header(self, i, r):
result = r.get('result')
- if not result: return
+ if not result:
+ return
height = result.get('block_height')
+ if not height:
+ return
self.heights[i.server] = height
self.merkle_roots[i.server] = result.get('merkle_root')
self.utxo_roots[i.server] = result.get('utxo_root')