Snapshots

How to download a snapshot

Python snapshot finder script

Install:

git clone https://github.com/c29r3/snapshot-finder.git &&
cd ~/snapshot-finder && python3 -m venv venv && source ./venv/bin/activate && pip3 install -r requirements.txt

Use:

python3 snapshot-finder.py --snapshot_path /PATH/TO/LEDGER -r http://api.mainnet-beta.solana.com

Shell script

curl -fsSL https://raw.githubusercontent.com/marat586l/solana-snap/main/snap.sh | bash -s <PUBLIC_RPC_IDENTITY> <LEDGER_PATH>

How to disable snapshots

Add this to the solana.service

--full-snapshot-interval-slots 0 \
--incremental-snapshot-interval-slots 0 \
--maximum-full-snapshots-to-retain 1 \
--maximum-incremental-snapshots-to-retain 1 \

Last updated