rpc_nodes: widen allowed heights

tempfix
tobtoht 3 years ago
parent d8dd87b056
commit 26571d306e
Signed by untrusted user: tobtoht
GPG Key ID: 1CADD27F41F45C3C

@ -69,7 +69,7 @@ class RPCNodeCheckTask(FeatherTask):
# popularity contest
common_height = popularity_contest([z['height'] for z in data])
valid_heights = range(common_height, common_height - allowed_offset, -1)
valid_heights = range(common_height + allowed_offset, common_height - allowed_offset, -1)
data = list(map(lambda _node: _node if _node['height'] in valid_heights
else self._bad_node(**_node), data))

Loading…
Cancel
Save