Skip to content

Commit

Permalink
0.2.8 log system added, added verbose mode -v
Browse files Browse the repository at this point in the history
  • Loading branch information
c29r3 committed Jun 16, 2022
1 parent 99840d4 commit 1516c7c
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 74 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ Automatic search and download of snapshots for Solana
5. Checks the download speed from RPC with the most recent snapshot. If `download_speed <min_download_speed`, then it checks the speed at the next node.
6. Download snapshot
```bash
usage: snapshot-finder.py [-h] [-t THREADS_COUNT] [-r RPC_ADDRESS] [--max_snapshot_age MAX_SNAPSHOT_AGE]
[--min_download_speed MIN_DOWNLOAD_SPEED] [--max_latency MAX_LATENCY] [--with_private_rpc]
[--measurement_time MEASUREMENT_TIME] [--snapshot_path SNAPSHOT_PATH]
[--num_of_retries NUM_OF_RETRIES] [--sleep SLEEP] [--sort_order SORT_ORDER] [-b BLACKLIST]
usage: snapshot-finder.py [-h] [-t THREADS_COUNT] [-r RPC_ADDRESS] [--max_snapshot_age MAX_SNAPSHOT_AGE] [--min_download_speed MIN_DOWNLOAD_SPEED] [--max_latency MAX_LATENCY] [--with_private_rpc] [--measurement_time MEASUREMENT_TIME]
[--snapshot_path SNAPSHOT_PATH] [--num_of_retries NUM_OF_RETRIES] [--sleep SLEEP] [--sort_order SORT_ORDER] [-b BLACKLIST] [-v]

Solana snapshot finder

Expand All @@ -31,28 +29,27 @@ optional arguments:
-t THREADS_COUNT, --threads-count THREADS_COUNT
the number of concurrently running threads that check snapshots for rpc nodes
-r RPC_ADDRESS, --rpc_address RPC_ADDRESS
RPC address of the node from which the current slot number will be taken https://api.mainnet-
beta.solana.com
RPC address of the node from which the current slot number will be taken https://api.mainnet-beta.solana.com
--max_snapshot_age MAX_SNAPSHOT_AGE
How many slots ago the snapshot was created (in slots)
--min_download_speed MIN_DOWNLOAD_SPEED
Minimum average snapshot download speed in megabytes
--max_latency MAX_LATENCY
The maximum value of latency (milliseconds). If latency > max_latency --> skip
--with_private_rpc Enable adding and checking RPCs with the --private-rpc option.This slow down checking and searching but potentially increases the number of RPCs from which snapshots can be downloaded.
--measurement_time MEASUREMENT_TIME
Time in seconds during which the script will measure the download speed
--snapshot_path SNAPSHOT_PATH
The location where the snapshot will be downloaded (absolute path). Example:
/home/ubuntu/solana/validator-ledger
The location where the snapshot will be downloaded (absolute path). Example: /home/ubuntu/solana/validator-ledger
--num_of_retries NUM_OF_RETRIES
The number of retries if a suitable server for downloading the snapshot was not found
--sleep SLEEP Sleep before next retry (seconds)
--sort_order SORT_ORDER
Priority way to sort the found servers. latency or slots_diff
-b BLACKLIST, --blacklist BLACKLIST
If the same corrupted archive is constantly downloaded, you can exclude it. Specify either the
number of the slot you want to exclude, or the hash of the archive name. You can specify several,
separated by commas. Example: -b 135501350,135501360 or --blacklist 135501350,some_hash
If the same corrupted archive is constantly downloaded, you can exclude it. Specify either the number of the slot you want to exclude, or the hash of the archive name. You can specify several, separated by commas. Example:
-b 135501350,135501360 or --blacklist 135501350,some_hash
-v, --verbose increase output verbosity to DEBUG
```
![alt text](https://raw.githubusercontent.com/c29r3/solana-snapshot-finder/aec9a59a7517a5049fa702675bdc8c770acbef99/2021-07-23_22-38.png?raw=true)
Expand Down
Loading

0 comments on commit 1516c7c

Please sign in to comment.