Skip to content

fix url for beta testnet #3

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

Merged
merged 2 commits into from
Feb 25, 2025
Merged
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
32 changes: 16 additions & 16 deletions guides/node-operators/run-a-super-world-computer-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ Hardware requirements for SWC testnet nodes can vary depending on the type of no

## Software dependencies

| Dependency | Version | Version Check Command |
| ------------------------------------------------------------- | -------- | --------------------- |
| [git](https://git-scm.com/) | `^2` | `git --version` |
| [go](https://go.dev/) | `^1.21` | `go version` |
| [make](https://linux.die.net/man/1/make) | `^3` | `make --version` |
| [just](https://just.systems/man/en/packages.html) | `^1.34` | `just --version` |
| Dependency | Version | Version Check Command |
| ------------------------------------------------- | ------- | --------------------- |
| [git](https://git-scm.com/) | `^2` | `git --version` |
| [go](https://go.dev/) | `^1.21` | `go version` |
| [make](https://linux.die.net/man/1/make) | `^3` | `make --version` |
| [just](https://just.systems/man/en/packages.html) | `^1.34` | `just --version` |

## Sync modes

For full nodes, the following configurations are available ([explanation](https://docs.optimism.io/operators/node-operators/management/snap-sync#enable-snap-sync-for-your-node)):

| |`op-node`(CL) | `op-geth`(EL) |
|-- |-- |-- |
|Full nodes EL snap sync |`--syncmode=execution-layer (not default)` | `--syncmode=snap (default)` |
|Full nodes EL full sync |`--syncmode=execution-layer (not default)` | `--syncmode=full (not default)` |
|Full nodes CL sync |`--syncmode=consensus-layer (default)` | `--syncmode=full (not default)` |
| | `op-node`(CL) | `op-geth`(EL) |
| ----------------------- | ------------------------------------------ | ------------------------------- |
| Full nodes EL snap sync | `--syncmode=execution-layer (not default)` | `--syncmode=snap (default)` |
| Full nodes EL full sync | `--syncmode=execution-layer (not default)` | `--syncmode=full (not default)` |
| Full nodes CL sync | `--syncmode=consensus-layer (default)` | `--syncmode=full (not default)` |

For archive nodes, please add `--gcmode=archive` to `op-geth`.

Expand All @@ -36,16 +36,16 @@ For archive nodes, please add `--gcmode=archive` to `op-geth`.

### Steps

1. Follow the following steps to build a node. The steps are basically the same as in [Optimism's documentation](https://docs.optimism.io/builders/node-operators/tutorials/node-from-source), the only difference is that here we use the `beta_testnet` branch of both [our optimism fork](https://github.com/ethstorage/optimism/tree/beta_testnet) and [our op-geth fork](https://github.com/ethstorage/op-geth/tree/beta_testnet) instead.
1. Follow the following steps to build a node. The steps are basically the same as in [Optimism's documentation](https://docs.optimism.io/builders/node-operators/tutorials/node-from-source), the only difference is that here we use the `beta_testnet` branch of both [our optimism fork](https://github.com/QuarkChain/optimism/tree/beta_testnet) and [our op-geth fork](https://github.com/QuarkChain/op-geth/tree/beta_testnet) instead.

- 1.1 Build `op-geth`
```bash
git clone -b beta_testnet https://github.com/ethstorage/op-geth.git
Copy link
Collaborator

@dajuguan dajuguan Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Links in [our optimism fork] and [our op-geth fork] should also be fixed.
Besides, does devnet's links need be fixed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. The devnet part will be removed entirely after Pectra Upgrade.

git clone -b beta_testnet https://github.com/QuarkChain/op-geth.git
pushd op-geth && make geth && popd
```
- 1.2 Build `op-node`
```bash
git clone -b beta_testnet https://github.com/ethstorage/optimism.git
git clone -b beta_testnet https://github.com/QuarkChain/optimism.git
pushd optimism && make op-node && popd
```

Expand All @@ -58,7 +58,7 @@ For archive nodes, please add `--gcmode=archive` to `op-geth`.

cd op-geth
# prepare beta_testnet_genesis.json
curl -LO https://raw.githubusercontent.com/ethstorage/pm/main/L2/assets/beta_testnet_genesis.json
curl -LO https://raw.githubusercontent.com/QuarkChain/pm/main/L2/assets/beta_testnet_genesis.json
./build/bin/geth init --datadir=datadir --state.scheme hash beta_testnet_genesis.json

openssl rand -hex 32 > jwt.txt
Expand All @@ -84,7 +84,7 @@ For archive nodes, please add `--gcmode=archive` to `op-geth`.
export L1_RPC_URL=http://88.99.30.186:8545
export L1_BEACON_URL=http://88.99.30.186:3500
# prepare beta_testnet_rollup.json
curl -LO https://raw.githubusercontent.com/ethstorage/pm/main/L2/assets/beta_testnet_rollup.json
curl -LO https://raw.githubusercontent.com/QuarkChain/pm/main/L2/assets/beta_testnet_rollup.json

mkdir safedb
# Ensure to replace --p2p.static with the sequencer's address.
Expand Down