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

update readme: fix links, document static nodes #144

Open
wants to merge 1 commit into
base: master
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
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Manually configuring geth requires installing prerequisites, downloading and com

## geth + Hera

The genesis is in [ewasm-testnet-geth-config.json](ewasm-testnet-geth-config.json)
The genesis is in [ewasm-testnet-geth-config.json](https://raw.githubusercontent.com/ewasm/testnet/ewasm-testnet-milestone1/ewasm-testnet-geth-config.json)

This section describes how to run geth node with the Hera backend.

Expand Down Expand Up @@ -168,7 +168,7 @@ Aleth supports EVMC out of the box, but geth not yet.
> cmake --build .
```

1. Download the [genesis file](ewasm-testnet-geth-config.json) and use it to initialize geth:
1. Download the [genesis file](https://raw.githubusercontent.com/ewasm/testnet/ewasm-testnet-milestone1/ewasm-testnet-geth-config.json) and use it to initialize geth:

```sh
> wget https://raw.githubusercontent.com/ewasm/testnet/ewasm-testnet-milestone1/ewasm-testnet-geth-config.json
Expand All @@ -177,6 +177,13 @@ Aleth supports EVMC out of the box, but geth not yet.

Note that the `/tmp/ewasm-node/4201` directory name above is arbitrary. It just needs to be unique.

1. Create a static peers file `{data-directory}/static-nodes.json`
```sh
[
"enode://53458e6bf0353f3378e115034cf6c6039b9faed52548da9030b37b4672de4a8fd09f869c48d16f9f10937e7398ae0dbe8b9d271408da7a0cf47f42a09e662827@23.101.78.254:30303"
]
```

1. Run geth with Hera and connect to the testnet:

Use `--vm.ewasm` flag in `geth` to plug in an EVMC VM shared library. Point it to the Hera shared library that you built a moment ago.
Expand Down Expand Up @@ -239,7 +246,14 @@ This section describes how to run geth node with the [Wagon](http://github.com/g
> go build ./cmd/geth/...
```

3. Run geth
3. Create a static peers file `{data-directory}/static-nodes.json`
```sh
[
"enode://53458e6bf0353f3378e115034cf6c6039b9faed52548da9030b37b4672de4a8fd09f869c48d16f9f10937e7398ae0dbe8b9d271408da7a0cf47f42a09e662827@23.101.78.254:30303"
]
```

4. Run geth

The Ewasm interpreter will be activated by default as long as you do not specify a `--vm.ewasm=...` on the command line option.

Expand Down