Skip to content

Commit

Permalink
Merge pull request #438 from alephium/update-download-snapshot-instr
Browse files Browse the repository at this point in the history
Update Instrs to Download Snapshot
  • Loading branch information
polarker authored Sep 4, 2024
2 parents 1eb17dc + 627980e commit 8fd24d8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/full-node/loading-snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ snapshot before extracting it:

```shell
ALEPHIUM_HOME=~/.alephium
ALEPHIUM_NETWORK=mainnet
curl -L "$(curl -sL https://archives.alephium.org/archives/$ALEPHIUM_NETWORK/full-node-data/_latest.txt)" | tar xf - -C "$ALEPHIUM_HOME/"
ALEPHIUM_NETWORK=mainnet # Possible values: `mainnet`, `testnet`
INDEXES_CONFIG=with-indexes # Possible values: `with-indexes`, `without-indexes`
NODE_TYPE=full # Possible values: `full`, `pruned`
curl -L "$(curl -sL https://archives.alephium.org/archives/$ALEPHIUM_NETWORK/$NODE_TYPE-node-data/_latest-$INDEXES_CONFIG.txt)" | tar xf - -C "$ALEPHIUM_HOME/"
```

A specific file `_latest.txt` is updated for your convenience, always pointing to the latest snapshot available.
A snapshot is created with [advanced node
indexes](/full-node/config#support-dapps) enabled to support the
development and operation of dApps. You can also start from a snapshot
without node indexes to save disk space.

Note that node indexes are always disabled for `pruned` snapshot.

## Using a ready-made script

Expand Down

0 comments on commit 8fd24d8

Please sign in to comment.