Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 1 deletion mytoninstaller/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down