Skip to content

Commit

Permalink
Update snapshot link in snapshots.md (#2013)
Browse files Browse the repository at this point in the history
Have the link pointing to the latest available snapshot.

In order for this to work, I had to remove the size and what's the latest block from the table, so we won't have to manually update this information everytime.

I also included a way to know how big the snapshot is via script, so this information will always be up-to-date by the time someone runs the command
  • Loading branch information
derrix060 authored and AnkushinDaniil committed Aug 12, 2024
1 parent 5e273c6 commit 1dc2178
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 14 deletions.
26 changes: 19 additions & 7 deletions docs/docs/snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@ You can download a snapshot of the Juno database to reduce the network syncing t

## Mainnet

| Version | Size | Block | Download Link |
| ------------ | ---------- | ---------- | ----------------------------------------------------------------------------------------------------- |
| **>=v0.9.2** | **172 GB** | **654881** | [**juno_mainnet.tar**](https://juno-snapshots.nethermind.dev/mainnet/juno_mainnet_v0.11.9_654881.tar) |
| Version | Download Link |
| ------- | ------------- |
| **>=v0.9.2** | [**juno_mainnet.tar**](https://juno-snapshots.nethermind.dev/files/mainnet/latest) |

## Sepolia

| Version | Size | Block | Download Link |
| ------------ | -------- | --------- | ---------------------------------------------------------------------------------------------------- |
| **>=v0.9.2** | **5 GB** | **66477** | [**juno_sepolia.tar**](https://juno-snapshots.nethermind.dev/sepolia/juno_sepolia_v0.11.7_66477.tar) |
| Version | Download Link |
| ------- | ------------- |
| **>=v0.9.2** | [**juno_sepolia.tar**](https://juno-snapshots.nethermind.dev/files/sepolia/latest) |

### Getting the size for each snapshot
```console
$date
Thu 1 Aug 2024 09:49:30 BST

$curl -s -I -L https://juno-snapshots.nethermind.dev/files/mainnet/latest | gawk -v IGNORECASE=1 '/^Content-Length/ { printf "%.2f GB\n", $2/1024/1024/1024 }'
172.47 GB

$curl -s -I -L https://juno-snapshots.nethermind.dev/files/sepolia/latest | gawk -v IGNORECASE=1 '/^Content-Length/ { printf "%.2f GB\n", $2/1024/1024/1024 }'
5.67 GB
```

## Run Juno with a snapshot

Expand All @@ -25,7 +37,7 @@ You can download a snapshot of the Juno database to reduce the network syncing t
First, download a snapshot from one of the provided URLs:

```bash
wget -O juno_mainnet.tar https://juno-snapshots.nethermind.dev/mainnet/juno_mainnet_v0.11.9_654464.tar
wget -O juno_mainnet.tar https://juno-snapshots.nethermind.dev/files/mainnet/latest
```

### 2. Prepare a directory
Expand Down
26 changes: 19 additions & 7 deletions docs/versioned_docs/version-0.11.8/snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@ You can download a snapshot of the Juno database to reduce the network syncing t

## Mainnet

| Version | Size | Block | Download Link |
| ------------ | ---------- | ---------- | ----------------------------------------------------------------------------------------------------- |
| **>=v0.9.2** | **172 GB** | **654881** | [**juno_mainnet.tar**](https://juno-snapshots.nethermind.dev/mainnet/juno_mainnet_v0.11.9_654881.tar) |
| Version | Download Link |
| ------- | ------------- |
| **>=v0.9.2** | [**juno_mainnet.tar**](https://juno-snapshots.nethermind.dev/files/mainnet/latest) |

## Sepolia

| Version | Size | Block | Download Link |
| ------------ | -------- | --------- | ---------------------------------------------------------------------------------------------------- |
| **>=v0.9.2** | **5 GB** | **66477** | [**juno_sepolia.tar**](https://juno-snapshots.nethermind.dev/sepolia/juno_sepolia_v0.11.7_66477.tar) |
| Version | Download Link |
| ------- | ------------- |
| **>=v0.9.2** | [**juno_sepolia.tar**](https://juno-snapshots.nethermind.dev/files/sepolia/latest) |

### Getting the size for each snapshot
```console
$date
Thu 1 Aug 2024 09:49:30 BST

$curl -s -I -L https://juno-snapshots.nethermind.dev/files/mainnet/latest | gawk -v IGNORECASE=1 '/^Content-Length/ { printf "%.2f GB\n", $2/1024/1024/1024 }'
172.47 GB

$curl -s -I -L https://juno-snapshots.nethermind.dev/files/sepolia/latest | gawk -v IGNORECASE=1 '/^Content-Length/ { printf "%.2f GB\n", $2/1024/1024/1024 }'
5.67 GB
```

## Run Juno with a snapshot

Expand All @@ -25,7 +37,7 @@ You can download a snapshot of the Juno database to reduce the network syncing t
First, download a snapshot from one of the provided URLs:

```bash
wget -O juno_mainnet.tar https://juno-snapshots.nethermind.dev/mainnet/juno_mainnet_v0.11.9_654881.tar
wget -O juno_mainnet.tar https://juno-snapshots.nethermind.dev/files/mainnet/latest
```

### 2. Prepare a directory
Expand Down

0 comments on commit 1dc2178

Please sign in to comment.