Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mytoninstaller/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down