From 7b1d1b2c57354a292857b913b22edf7dc98bcdf9 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 11 Aug 2022 21:42:17 -0500 Subject: [PATCH] Tweak tor checkin rate --- rootfs/standard/usr/bin/mynode_check_in.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_check_in.py b/rootfs/standard/usr/bin/mynode_check_in.py index 4b2e66ad..96c7db98 100755 --- a/rootfs/standard/usr/bin/mynode_check_in.py +++ b/rootfs/standard/usr/bin/mynode_check_in.py @@ -101,9 +101,9 @@ def check_in(): check_in_success = False while not check_in_success: try: - # Use tor for check in unless there have been tor 5 failures in a row + # Use tor for check in unless there have been several tor failures r = None - if (fail_count+1) % 5 == 0: + if (fail_count+1) % 4 == 0: r = requests.post(CHECKIN_URL, data=data, timeout=20) else: r = session.post(CHECKIN_URL, data=data, timeout=20)