From 399c570b8a7f9a85cd74a55e4cee56160db68c96 Mon Sep 17 00:00:00 2001 From: yungwine Date: Mon, 7 Jul 2025 19:17:38 +0900 Subject: [PATCH] fix archive-ttl==0 --- mytoninstaller/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mytoninstaller/settings.py b/mytoninstaller/settings.py index b403ec37..a9256eee 100644 --- a/mytoninstaller/settings.py +++ b/mytoninstaller/settings.py @@ -53,6 +53,8 @@ def FirstNodeSettings(local): if os.getenv('STATE_TTL'): state_ttl = int(os.getenv('STATE_TTL')) archive_ttl -= state_ttl + if archive_ttl == 0: + archive_ttl = 1 # todo: remove this when archive_ttl==0 will be allowed in node # Проверить конфигурацию if os.path.isfile(vconfig_path):