diff --git a/src/pages/cli/download.mdx b/src/pages/cli/download.mdx index 7b46657c..ef0bc727 100644 --- a/src/pages/cli/download.mdx +++ b/src/pages/cli/download.mdx @@ -19,23 +19,48 @@ tempo download [flags] | --- | --- | | `--chain ` | Target network (`mainnet`, `moderato`) | | `--datadir ` | Data directory for downloaded state | -| `-u, --url ` | Download a specific snapshot URL instead of the latest | +| `-u, --url ` | Download a specific snapshot URL | +| `--list` | List available snapshots | | `--resumable` | Resume an interrupted download | -| `--minimal` | Download minimal snapshot (pruned state only). Do not use if running a validator. | -| `--archive` | Download full archive snapshot. Do not use if running a validator. | +| `--minimal` | Download minimal snapshot (pruned state, suitable for validators) | +| `--archive` | Download full archive snapshot (suitable for RPC nodes) | ## Examples -Download a snapshot from https://snapshots.tempoxyz.dev: +Download the latest archive snapshot (for RPC nodes): ```bash -tempo download -u $SNAPSHOT_URL +tempo download --archive +``` + +Download the latest minimal snapshot (for validators): + +```bash +tempo download --minimal +``` + +Download a snapshot for a specific chain: + +```bash +tempo download --archive --chain moderato +``` + +List available snapshots: + +```bash +tempo download --list +``` + +List available snapshots for a specific chain: + +```bash +tempo download --list --chain moderato ``` Resume an interrupted download: ```bash -tempo download -u $SNAPSHOT_URL --resumable +tempo download --archive --resumable ``` Then start your node with [`tempo node`](/cli/node). diff --git a/src/pages/guide/node/rpc.mdx b/src/pages/guide/node/rpc.mdx index b349ee2a..95c6e1c1 100644 --- a/src/pages/guide/node/rpc.mdx +++ b/src/pages/guide/node/rpc.mdx @@ -12,9 +12,7 @@ RPC nodes provide API access to the Tempo network without participating in conse ```bash /dev/null/quickstart.sh#L1-15 # Download snapshot (this will help you sync much faster) -# -# See https://snapshots.tempoxyz.dev/ for snapshots. -tempo download -u $SNAPSHOT_URL +tempo download --archive # Run node tempo node \ @@ -27,11 +25,6 @@ An RPC node running in follow mode is a **full node**. It fetches blocks from a By default, RPC nodes run in archive mode, meaning they do not prune historical state. -## Manually downloading snapshots - -Daily snapshots for the persistent testnet can be found at [https://snapshots.tempoxyz.dev](https://snapshots.tempoxyz.dev). You can extract them either using -`tempo download --url ` or downloading them manually and extracting them using `curl | lz4 -d | tar -xzf -`. - ## Example Systemd Service ```bash /dev/null/systemd.sh#L1-55 diff --git a/src/pages/guide/node/validator.mdx b/src/pages/guide/node/validator.mdx index 777d7872..02d7ae32 100644 --- a/src/pages/guide/node/validator.mdx +++ b/src/pages/guide/node/validator.mdx @@ -22,7 +22,7 @@ The signing key is static. Pre-T2, it can only be rotated by removing and re-cre The process for running a validator node is very similar to [running a full node](/guide/node/rpc). -You should start by downloading the latest snapshot using `tempo download -u `. Downloading the snapshot allows your validator to start participating in consensus much faster. +You should start by downloading the latest snapshot using `tempo download --minimal`. Downloading the snapshot allows your validator to start participating in consensus much faster. Once you've downloaded the snapshot and have been whitelisted on-chain, you can proceed to run the validator node as such: ```bash