Skip to content

Commit

Permalink
Revert "Decrease % before update due to relay crash"
Browse files Browse the repository at this point in the history
This reverts commit 54435d8.
  • Loading branch information
cryptobench committed Oct 19, 2023
1 parent 54435d8 commit 76ae186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats-backend/collector/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ def v1_offer_scraper_hybrid():
serialized = json.loads(content)
online_node_count = Node.objects.filter(online=True, hybrid=True).count()
# Stabilize the chart when running multiple scanners by checking if its atleast 90% of the nodes online before updating. There's a risk that it won't update if more than 10% of the network drops within a single minute.
if len(serialized) >= online_node_count * 0.60:
if len(serialized) >= online_node_count * 0.90:
print(f"Updating database with {len(serialized)} nodes.")
nodes_to_update = []
offline_nodes = set(
Expand Down

0 comments on commit 76ae186

Please sign in to comment.