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

Develop #370

Open
wants to merge 1 commit into
base: develop
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
16 changes: 8 additions & 8 deletions src/content/docs/en/developers/guides/running-a-scroll-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ You will need access to a fully-synced **Ethereum Mainnet** or **Ethereum Sepoli
1. Clone the latest version of `l2geth`.

```bash
$ git clone https://github.com/scroll-tech/go-ethereum l2geth-source
$ cd l2geth-source
$ git checkout VERSION
```
git clone https://github.com/scroll-tech/go-ethereum l2geth-source
cd l2geth-source
git checkout VERSION
```
2. Ensure that you are using version 1.20 of `go`.
3. Install the gcc compiler: `sudo apt install build-essential`.
4. Build `l2geth`: `make nccc_geth`. The binary is now in `build/bin/geth`.
Expand All @@ -63,7 +63,7 @@ Please consider opening port `30303`(UDP & TCP) and enabling discovery so that o
1. Run `l2geth`.

```bash
$ l2geth --scroll \
l2geth --scroll \
--datadir "./l2geth-datadir" \
--gcmode archive --cache.noprefetch \
--http --http.addr "0.0.0.0" --http.port 8545 --http.api "eth,net,web3,debug,scroll" \
Expand All @@ -82,7 +82,7 @@ Please consider opening port `30303`(UDP & TCP) and enabling discovery so that o
2. In a separate shell, you can now attach to `l2geth`.

```bash
$ l2geth attach "./l2geth-datadir/geth.ipc"
l2geth attach "./l2geth-datadir/geth.ipc"

> admin.peers.length
5
Expand Down Expand Up @@ -111,7 +111,7 @@ Running the node in Docker might have a significant impact on node performance.
1. Run the `l2geth` container using the name `l2geth-docker`:

```bash
$ docker run --rm --name l2geth-docker -v $(pwd):/volume -p 8545:8545 -e RUST_LOG="info" -e CHAIN_ID="534352" scrolltech/l2geth:latest \
docker run --rm --name l2geth-docker -v $(pwd):/volume -p 8545:8545 -e RUST_LOG="info" -e CHAIN_ID="534352" scrolltech/l2geth:latest \
--scroll \
--datadir "/volume/l2geth-datadir" \
--gcmode archive --cache.noprefetch \
Expand All @@ -123,7 +123,7 @@ Running the node in Docker might have a significant impact on node performance.
2. In a separate shell, you can now attach to `l2geth`.

```bash
$ docker exec -it l2geth-docker geth attach "/volume/l2geth-datadir/geth.ipc"
docker exec -it l2geth-docker geth attach "/volume/l2geth-datadir/geth.ipc"

> admin.peers.length
5
Expand Down