From 9d8162b5708de7bbdaae5a65bab5f2767eea3a8d Mon Sep 17 00:00:00 2001 From: yungwine Date: Tue, 23 Sep 2025 18:29:25 +0200 Subject: [PATCH 1/3] bump questionary version --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index abd5af18..fce8a8fb 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -95,7 +95,7 @@ if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup w echo "pip not found. Installing pip..." python3 -m pip install --upgrade pip fi - pip3 install questionary==2.1.0 --break-system-packages + pip3 install questionary==2.1.1 --break-system-packages python3 install.py "$@" pip3 uninstall questionary -y exit From 9fcf8ba386a707d872eb3e98f477ddf2c178d057 Mon Sep 17 00:00:00 2001 From: yungwine Date: Tue, 23 Sep 2025 18:30:34 +0200 Subject: [PATCH 2/3] update archive_blocks question --- scripts/install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install.py b/scripts/install.py index 81f4e41c..a7b31b4e 100644 --- a/scripts/install.py +++ b/scripts/install.py @@ -120,7 +120,8 @@ def run_cli(): if mode == "liteserver": archive_blocks = questionary.text( "Do you want to download archive blocks via TON Storage? Press Enter to skip.\n" - "If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with (send `1` to download all blocks and setup full archive node).\n" + "If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with\n" + "(send `1` to download all blocks and setup full archive node).\n" "Examples: `30850000`, `10000000 10200000`, `2025-01-01`, `2025-01-01 2025-01-30`", validate=validate_archive_blocks ).unsafe_ask() From c18da6a5ec8dfe97423296016c3d6886d3283f87 Mon Sep 17 00:00:00 2001 From: yungwine Date: Thu, 25 Sep 2025 13:52:58 +0200 Subject: [PATCH 3/3] add timeout to archive blocks config request --- mytoninstaller/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mytoninstaller/settings.py b/mytoninstaller/settings.py index 6288f6c8..b760a361 100644 --- a/mytoninstaller/settings.py +++ b/mytoninstaller/settings.py @@ -224,7 +224,7 @@ def download_archive_from_ts(local): block_bags = [] master_block_bags = [] - blocks_config = requests.get(url).json() + blocks_config = requests.get(url, timeout=3).json() for state in blocks_config['states']: if state['at_block'] > block_from: break