mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
on_header: return early if block_height is missing
This commit is contained in:
parent
6631ab9406
commit
173c034e26
1 changed files with 4 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue