Skip to content

Commit

Permalink
Merge pull request #125 from Fraccaman/main
Browse files Browse the repository at this point in the history
Use`aria2` instead of `wget` to download snapshot
  • Loading branch information
niccoloraspa authored Feb 5, 2025
2 parents 692a7ac + 91f6d24 commit 350f3f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion i.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@ def install_snapshot_prerequisites():
print("Installing lz4...")
subprocess.run(['brew', 'install', 'lz4'])

print("Installing aria2...")
subprocess.run(['brew', 'install', 'aria2'])

print("Installation completed successfully.")
clear_screen()

Expand Down Expand Up @@ -961,7 +964,7 @@ def print_snapshot_download_info(snapshot_info):

try:
print(f"\n🔽 Downloading snapshots from {snapshot_url}")
download_process = subprocess.Popen(["wget", "-q", "-O", "-", snapshot_url], stdout=subprocess.PIPE)
download_process = subprocess.Popen(["aria2c", snapshot_url], stdout=subprocess.PIPE)
lz4_process = subprocess.Popen(["lz4", "-d"], stdin=download_process.stdout, stdout=subprocess.PIPE)
tar_process = subprocess.Popen(["tar", "-C", osmosis_home, "-xf", "-"], stdin=lz4_process.stdout, stdout=subprocess.PIPE)

Expand Down

0 comments on commit 350f3f2

Please sign in to comment.