From 26571d306e2035cbb9d336c8b6925632a747546d Mon Sep 17 00:00:00 2001 From: tobtoht Date: Wed, 30 Dec 2020 00:30:25 +0100 Subject: [PATCH] rpc_nodes: widen allowed heights --- fapi/tasks/rpc_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fapi/tasks/rpc_nodes.py b/fapi/tasks/rpc_nodes.py index 225c842..52f6cdd 100644 --- a/fapi/tasks/rpc_nodes.py +++ b/fapi/tasks/rpc_nodes.py @@ -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))