Skip to content

Commit

Permalink
Fix typo (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantica11 authored Aug 20, 2024
1 parent c806e0e commit 3cf2948
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@ operators need to index all of the Solana blocks since the ZK Compression contra

Helius supports a public endpoint for loading snapshots. To load a snapshot simply run:
```bash
photon-snapshot-loader -- --snapshot-dir=~/snapshot --snapshot-server-url=https://photon-devnet-snapshot.helius-rpc.com
photon-snapshot-loader --snapshot-dir=~/snapshot --snapshot-server-url=https://photon-devnet-snapshot.helius-rpc.com
```

Then use the snapshot to load Photon faster:
```bash
# Photon will disregard the snapshot if the database is more up-to-date.
photon-indexer -- --snapshot-dir=~/snapshot --r=https://api.devnet.solana.com --db-url=postgres://postgres@localhost/postgres
photon-indexer --snapshot-dir=~/snapshot --r=https://api.devnet.solana.com --db-url=postgres://postgres@localhost/postgres
```

To create snapshots you can run the Photon snapshotter:
```bash
photon-snapshotter -- --snapshot-dir=~/snapshot
photon-snapshotter --snapshot-dir=~/snapshot
```

You can also specify an R2 bucket for storing the snapshot files instead of a local directory:
```bash
# If you specify an R2 bucket, you must set the R2_ACCESS_KEY, R2_ACCOUNT_ID and R2_SECRET_KEY
photon-snapshotter -- --r2-bucket=some-bucket --r2-prefix=prefix
photon-snapshotter --r2-bucket=some-bucket --r2-prefix=prefix
```


Expand Down

0 comments on commit 3cf2948

Please sign in to comment.