mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
Merge pull request 'rpc_nodes: widen allowed heights' (#8) from tobtoht/feather-ws:widen_offsets into master
Reviewed-on: https://git.wownero.com/feather/feather-ws/pulls/8
This commit is contained in:
commit
a33d241015
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class RPCNodeCheckTask(FeatherTask):
|
||||||
|
|
||||||
# popularity contest
|
# popularity contest
|
||||||
common_height = popularity_contest([z['height'] for z in data])
|
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
|
data = list(map(lambda _node: _node if _node['height'] in valid_heights
|
||||||
else self._bad_node(**_node), data))
|
else self._bad_node(**_node), data))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue