Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Document EVM node snapshot import #165

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/network/evm-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,36 @@ The default is `$HOME/.octez-evm-node`.

You can initialize the node from a snapshot or allow it to compute the Etherlink state from genesis, which can take a long time.

### From an EVM node etherlink snapshot

This is the recommended method as it allows to bootstrap an Etherlink node the
quickest with the complete history.

1. Download [an Etherlink Smart Rollup node snapshot](#<url>).

```bash
wget <url> -O etherlink.snapshot
```

1. Import the snapshot using the `octez-evm-node` binary.

```bash
octez-evm-node snapshot import etherlink.snapshot --data-dir $evm_observer_dir
```

1. Run this command to start the node:

```bash
octez-evm-node run observer --data-dir $evm_observer_dir
```

### From an existing Etherlink Smart Rollup node

In case EVM node snapshots are not available, one can initialize an Etherlink
node using a Smart Rollup node snapshot (or a Smart Rollup node data
directory). The EVM node will contain the state and history of the chain
starting with the snapshot block.

1. Download [an Etherlink Smart Rollup node snapshot](https://snapshots.eu.tzinit.org/etherlink-ghostnet/), and use the `octez-smart-rollup-node` binary to import it in a temporary directory.

```bash
Expand Down