Skip to content

Commit 7304156

Browse files
Lane Rettigaxic
authored andcommitted
Break out geth+wagon docs
1 parent 4bd13d0 commit 7304156

2 files changed

Lines changed: 30 additions & 36 deletions

File tree

README.md

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -185,42 +185,7 @@ Aleth supports EVMC out of the box, but geth not yet.
185185

186186
### geth + Wagon
187187

188-
**NOTE: this client currently is not supported fully and the instructions here may be wrong.**
189-
190-
This section describes how to run geth node with the [Wagon](http://github.com/go-interpreter/wagon) VM.
191-
192-
1. Get the code from the PR
193-
194-
```sh
195-
> go get github.com/ethereum/go-ethereum
196-
> cd $GOROOT/src/github.com/ethereum/go-ethereum
197-
> git remote add gballet git@github.com:gballet/go-ethereum.git
198-
> git fetch gballet add-ewasm
199-
> git checkout add-ewasm
200-
```
201-
202-
2. Build geth
203-
204-
```sh
205-
> go build ./cmd/geth/...
206-
```
207-
208-
3. Run geth
209-
210-
The ewasm interpreter will be activated by default as long as you do not specify a `--vm.ewasm=...` on the command line option.
211-
212-
```sh
213-
> ./geth \
214-
--datadir /tmp/ewasm-node/4201/ \
215-
--etherbase 031159dF845ADe415202e6DA299223cb640B9DB0 \
216-
--rpc --rpcapi "web3,net,eth,debug" \
217-
--rpcvhosts="*" --rpcaddr "0.0.0.0" \
218-
--rpccorsdomain "*" \
219-
--mine --miner.threads 1 \
220-
--nodiscover \
221-
--networkid 66 \
222-
--bootnodes "enode://53458e6bf0353f3378e115034cf6c6039b9faed52548da9030b37b4672de4a8fd09f869c48d16f9f10937e7398ae0dbe8b9d271408da7a0cf47f42a09e662827@23.101.78.254:30303"
223-
```
188+
The testnet has experimental support for running a geth node with the [Wagon](http://github.com/go-interpreter/wagon) third-party VM. Instructions may be found [here](wagon.md).
224189

225190
### Aleth (cpp-ethereum) + Hera
226191

wagon.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# geth + Wagon
2+
3+
**NOTE: this client currently is not supported fully and the instructions here may be wrong.**
4+
5+
[Wagon](http://github.com/go-interpreter/wagon) is a third-party WebAssembly VM written natively in Go. Support for geth + Wagon on the Ewasm testnet is experimental. This document describes how to run geth node with geth and the Wagon VM.
6+
7+
1. Get the code from the PR
8+
9+
```sh
10+
> go get github.com/ethereum/go-ethereum
11+
> cd $GOROOT/src/github.com/ethereum/go-ethereum
12+
> git remote add gballet git@github.com:gballet/go-ethereum.git
13+
> git fetch gballet add-ewasm
14+
> git checkout add-ewasm
15+
```
16+
17+
1. Build geth
18+
19+
```sh
20+
> go build ./cmd/geth/...
21+
```
22+
23+
1. Run geth
24+
25+
The ewasm interpreter will be activated by default as long as you do not specify a `--vm.ewasm=...` on the command line option.
26+
27+
```sh
28+
> TMPDIR=/tmp/ewasm-node/ ./geth --datadir $TMPDIR --etherbase 031159dF845ADe415202e6DA299223cb640B9DB0 --rpc --rpcapi "web3,net,eth,debug" --rpcvhosts="*" --rpcaddr "0.0.0.0" --rpccorsdomain "*" --mine --miner.threads 1 --nodiscover --networkid 66
29+
```

0 commit comments

Comments
 (0)