Skip to content

Commit c1911c9

Browse files
authored
Merge pull request #486 from yungwine/archive-sync
Archive sync
2 parents f5267fb + c18da6a commit c1911c9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

mytoninstaller/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def download_archive_from_ts(local):
224224
block_bags = []
225225
master_block_bags = []
226226

227-
blocks_config = requests.get(url).json()
227+
blocks_config = requests.get(url, timeout=3).json()
228228
for state in blocks_config['states']:
229229
if state['at_block'] > block_from:
230230
break

scripts/install.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def run_cli():
120120
if mode == "liteserver":
121121
archive_blocks = questionary.text(
122122
"Do you want to download archive blocks via TON Storage? Press Enter to skip.\n"
123-
"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"
123+
"If yes, provide block seqno or date to start from and (optionally) block seqno or date to end with\n"
124+
"(send `1` to download all blocks and setup full archive node).\n"
124125
"Examples: `30850000`, `10000000 10200000`, `2025-01-01`, `2025-01-01 2025-01-30`",
125126
validate=validate_archive_blocks
126127
).unsafe_ask()

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup w
9595
echo "pip not found. Installing pip..."
9696
python3 -m pip install --upgrade pip
9797
fi
98-
pip3 install questionary==2.1.0 --break-system-packages
98+
pip3 install questionary==2.1.1 --break-system-packages
9999
python3 install.py "$@"
100100
pip3 uninstall questionary -y
101101
exit

0 commit comments

Comments
 (0)