update readme.md (#407)

fix command mistake and enable geth websocket server for beacon node
This commit is contained in:
Mr Fox 2018-08-17 07:40:17 +08:00 committed by Preston Van Loon
parent 74b5f2e537
commit 090f37352e

View File

@ -73,8 +73,8 @@ The `alloc` portion specifies account addresses with prefunded ETH when the Ethe
Then, you can build and init a new instance of a local, Ethereum blockchain as follows:
```
geth init /path/to/genesis.json -datadir /path/to/your/datadir
geth --nodiscover console --datadir /path/to/your/datadir --networkid 12345
geth init /path/to/genesis.json --datadir /path/to/your/datadir
geth --nodiscover console --datadir /path/to/your/datadir --networkid 12345 --ws --wsaddr=127.0.0.1 --wsport 8546 --wsorigins "*"
````
It is **important** to note that the `--networkid` flag must match the `chainId` property in the genesis file.