-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #384 from gnosischain/CL/teku
Run a node updates
- Loading branch information
Showing
10 changed files
with
504 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
168 changes: 168 additions & 0 deletions
168
docs/node/guide/beacon/_partials/_install_cl_lodestar.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.