Skip to content

Commit

Permalink
Merge pull request #384 from gnosischain/CL/teku
Browse files Browse the repository at this point in the history
Run a node updates
  • Loading branch information
alebanzas authored Feb 14, 2023
2 parents 2128c09 + b3ec85f commit 429af34
Show file tree
Hide file tree
Showing 10 changed files with 504 additions and 53 deletions.
30 changes: 15 additions & 15 deletions docs/about/networks/chiado.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ Image: Trams in Lisbon (credit: [Lisa Fotios](https://www.pexels.com/photo/peopl
## Summary
### Key Infra

| Network Name | Chiado |
| ------------------------ | ------------------------------------ |
| Native (fee) token | Testnet xDai on Chiado |
| Staking token | Testnet GNO on Chiado |
| Chain ID | 10200 |
| Execution Layer RPC | https://rpc.chiado.gnosis.gateway.fm |
| Execution Layer RPC | https://rpc.chiadochain.net |
| Execution Layer RPC (WS) | wss://rpc.chiadochain.net/wss |
| Execution Layer Explorer | https://blockscout.com/gnosis/chiado |
| Execution Layer Explorer | https://blockscout.chiadochain.net |
| Consensus Layer Explorer | https://beacon.chiadochain.net |
| Beacon Checkpoint Sync | https://checkpoint.chiadochain.net |
| Fork monitor | https://forkmon.chiadochain.net |
| EthStats | https://ethstats.chiadochain.net |
| Faucet | https://gnosisfaucet.com |
| Network Name | Chiado |
| ----------------------------- | ------------------------------------ |
| Native (fee) token | Testnet xDai on Chiado |
| Staking token | Testnet GNO on Chiado |
| Chain ID | 10200 |
| Execution Layer RPC (archive) | https://rpc.chiado.gnosis.gateway.fm |
| Execution Layer RPC | https://rpc.chiadochain.net |
| Execution Layer RPC (WS) | wss://rpc.chiadochain.net/wss |
| Execution Layer Explorer | https://blockscout.com/gnosis/chiado |
| Execution Layer Explorer | https://blockscout.chiadochain.net |
| Consensus Layer Explorer | https://beacon.chiadochain.net |
| Beacon Checkpoint Sync | https://checkpoint.chiadochain.net |
| Fork monitor | https://forkmon.chiadochain.net |
| EthStats | https://ethstats.chiadochain.net |
| Faucet | https://gnosisfaucet.com |

### Key Parameters
| Param | Value |
Expand Down
168 changes: 168 additions & 0 deletions docs/node/guide/beacon/_partials/_install_cl_lodestar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';


<Tabs className="tabgroup-with-label network-tabgroup" groupId="network" defaultValue="gnosis" values={[
{label: 'Gnosis', value: 'gnosis'},
{label: 'Chiado', value: 'chiado'}
]}>
<TabItem value="gnosis">

<Tabs className="tabgroup-with-label os-tabgroup" groupId="os" defaultValue="others" values={[
{label: 'Linux, MacOS, Arm64', value: 'others'},
{label: 'Windows', value: 'win'}
]}>
<TabItem value="others">

- Go to the [lodestar releases page](https://github.com/ChainSafe/lodestar/releases/tag/v1.2.2) and copy the url of the latest release.

- Download the lodestar VERSION-ARQ.tar.gz binary.
```bash
wget [URL_FROM_PREVIOUS_STEP]
```

- Extract the downloaded file and move under consensus directory.
```bash
tar -xvf VERSION-ARQ.tar.gz --directory consensus
```

Your repo will look like this
```
πŸ“‚gnosis
β”œβ”€β”€ πŸ“‚ jwtsecret/
β”œβ”€β”€ πŸ“‚ execution/
└── πŸ“‚ consensus/
β”œβ”€β”€ πŸ“‚ lodestar-${version}/
β”œβ”€β”€ πŸ“‚ data/
β”œβ”€β”€ πŸ“‚ keystores/
└── πŸ“‚ validators/
```
- Get into the lodestar folder
```bash
cd consensus && cd lodestar-${version}
```
- Install and build across all packages
```bash
yarn install --ignore-optional
yarn run build
```
:::tip
Check that you are install correctly by running `./lodestar --help'
:::
- Execute Lodestar Beacon Chain
```bash
./lodestar \
--network=gnosis \
--dataDir=/data \
--preset=gnosis \
--eth1=true \
--execution.urls=http://execution:8551 \
--jwt-secret=../../jwtsecret/jwt.hex \
--logFile=/data/logs/beacon.log \
--logFileLevel=info \
--port=9000 \
--rest=true \
--rest.address=0.0.0.0 \
--rest.port=4000 \
--rest.cors=* \
--discv5=true \
--targetPeers=50 \
--metrics=true \
--metrics.port=5054 \
--checkpointSyncUrl=https://checkpoint.gnosischain.com/
```
</TabItem>
<TabItem value="win">
Lodestar only runs on Linux. To run it on Windows, [Install Linux on Windows with WSL](https://learn.microsoft.com/en-us/windows/wsl/install), and follow the instructions on the WSL terminal.
- Go to the [lodestar releases page](https://github.com/ChainSafe/lodestar/releases/tag/v1.2.2) and copy the url of the latest release, currently v1.2.2.
- Download the lodestar VERSION-ARQ.tar.gz binary.
```bash
wget [URL_FROM_PREVIOUS_STEP]
```
- Extract the downloaded file and move under consensus directory
```bash
tar -xvf VERSION-ARQ.tar.gz --directory consensus
```
Your repo will look like this
```
πŸ“‚gnosis
β”œβ”€β”€ πŸ“‚ jwtsecret/
β”œβ”€β”€ πŸ“‚ execution/
└── πŸ“‚ consensus/
β”œβ”€β”€ πŸ“‚ lodestar-${version}/
β”œβ”€β”€ πŸ“‚ data/
β”œβ”€β”€ πŸ“‚ keystores/
└── πŸ“‚ validators/
```
- Get into the lodestar folder
```bash
cd consensus && cd lodestar-${version}
```
- Install and build across all packages
```bash
yarn install --ignore-optional
yarn run build
```
:::tip
Check that you are install correctly by running `./lodestar --help'
:::
- Execute Lodestar Beacon Chain
```bash
./lodestar \
--network=gnosis \
--dataDir=/data \
--preset=gnosis \
--eth1=true \
--execution.urls=http://execution:8551 \
--jwt-secret=../../jwtsecret/jwt.hex \
--logFile=/data/logs/beacon.log \
--logFileLevel=info \
--port=9000 \
--rest=true \
--rest.address=0.0.0.0 \
--rest.port=4000 \
--rest.cors=* \
--discv5=true \
--targetPeers=50 \
--metrics=true \
--metrics.port=5054 \
--checkpointSyncUrl=https://checkpoint.gnosischain.com/
```
</TabItem>
</Tabs>
</TabItem>
<TabItem value="chiado">
<Tabs className="tabgroup-with-label os-tabgroup" groupId="os" defaultValue="others" values={[
{label: 'Linux, MacOS, Arm64', value: 'others'},
{label: 'Windows', value: 'win'}
]}>
<TabItem value="others">
Lodestar doesn't support Chiado at the moment.
</TabItem>
<TabItem value="win">
Lodestar doesn't support Chiado at the moment.
</TabItem>
</Tabs>
</TabItem>
</Tabs>
160 changes: 160 additions & 0 deletions docs/node/guide/beacon/_partials/_install_cl_teku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';


<Tabs className="tabgroup-with-label network-tabgroup" groupId="network" defaultValue="gnosis" values={[
{label: 'Gnosis', value: 'gnosis'},
{label: 'Chiado', value: 'chiado'}
]}>
<TabItem value="gnosis">

<Tabs className="tabgroup-with-label os-tabgroup" groupId="os" defaultValue="others" values={[
{label: 'Linux, MacOS, Arm64', value: 'others'},
{label: 'Windows', value: 'win'}
]}>
<TabItem value="others">

## Prerequisites
1. Java 11+


## Install and Run

- Go to the [Teku release page](https://github.com/ConsenSys/teku/releases) and copy the url of the binary distribution under **Downloads** section.


- Download the teku Source code .tar.gz binary.
```bash
wget [URL_FROM_PREVIOUS_STEP]
```

- Extract the downloaded file and move under consensus directory
```bash
tar -xvf VERSION.tar.gz --directory consensus
```

- Get into the teku folder
```bash
cd consensus && cd teku-${version}
```

Your repo will look like this



```
πŸ“‚gnosis
β”œβ”€β”€ πŸ“‚ jwtsecret/
β”œβ”€β”€ πŸ“‚ execution/
└── πŸ“‚ consensus/
β”œβ”€β”€ πŸ“‚ teku-${version}/
β”œβ”€β”€ πŸ“‚ data/
β”œβ”€β”€ πŸ“‚ keystores/
└── πŸ“‚ validators/
```
If you're installing on macOS with Homebrew, check out [here](https://docs.teku.consensys.net/en/latest/HowTo/Get-Started/Installation-Options/Install-Binaries/#macos-with-homebrew).
Check that you are installing correctly by running `./bin/teku --help'
:::tip
You can run both beacon and validator with a single command. If you wish to run with a single command, skip to [step 4: Run a validator](../../README.md#step-4-run-a-validator).
:::
- Execute beacon node(Optional)
```
./bin/teku \
--ee-endpoint=http://localhost:8551 \
--ee-jwt-secret-file=../../jwtsecret/jwt.hex \
--metrics-enabled=true \
--rest-api-enabled=true
```
</TabItem>
<TabItem value="win">
## Prerequisites
1. Java 11+
2. [Microsoft Visual C++ 2010 security update](https://www.microsoft.com/en-us/download/details.aspx?id=26999)
## Install and Run
- Go to the [Teku release page](https://github.com/ConsenSys/teku/releases) and copy the url of the binary distribution under **Downloads** section.
- Download the teku Source code .tar.gz binary.
```bash
wget [URL_FROM_PREVIOUS_STEP]
```
- Extract the downloaded file and move under consensus directory
```bash
tar -xvf VERSION.tar.gz --directory consensus
```
- Get into the teku folder
```bash
cd consensus && cd teku-${version}
```
Your repo will look like this
```
πŸ“‚gnosis
β”œβ”€β”€ πŸ“‚ jwtsecret/
β”œβ”€β”€ πŸ“‚ execution/
└── πŸ“‚ consensus/
β”œβ”€β”€ πŸ“‚ teku-${version}/
β”œβ”€β”€ πŸ“‚ data/
β”œβ”€β”€ πŸ“‚ keystores/
└── πŸ“‚ validators/
```
If you're installing on macOS with Homebrew, check out [here](https://docs.teku.consensys.net/en/latest/HowTo/Get-Started/Installation-Options/Install-Binaries/#macos-with-homebrew).
Check that you are installing correctly by running `bin\teku --help'
:::tip
You can run both beacon and validator with a single command. If you wish to run with a single command, skip to [step 4: Run a validator](../../README.md#step-4-run-a-validator).
:::
- Execute beacon node(Optional)
```
./bin/teku \
--ee-endpoint=http://localhost:8551 \
--ee-jwt-secret-file=../jwtsecret/jwt.hex \
--metrics-enabled=true \
--rest-api-enabled=true
```
</TabItem>
</Tabs>
</TabItem>
<TabItem value="chiado">
<Tabs className="tabgroup-with-label os-tabgroup" groupId="os" defaultValue="others" values={[
{label: 'Linux, MacOS, Arm64', value: 'others'},
{label: 'Windows', value: 'win'}
]}>
<TabItem value="others">
Teku doesn't support Chiado at the moment.
</TabItem>
<TabItem value="win">
Teku doesn't support Chiado at the moment.
</TabItem>
</Tabs>
</TabItem>
</Tabs>
Loading

0 comments on commit 429af34

Please sign in to comment.