Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

gnosischain/validator-node-dockerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Warning

Open Ethereum client is no longer supported. To spin up the Gnosis Chain validator please use the official documentation.

How to launch Gnosis Chain validator node with Docker Compose and OpenEthereum

  1. Install Docker Engine and Docker Compose following the original instructions https://docs.docker.com/get-docker/ and https://docs.docker.com/compose/install/

  2. Clone this repo:

    $ git clone https://github.com/gnosischain/validator-node-dockerized
    $ cd validator-node-dockerized
  3. To be a validator, you need to have a mining address and a private key for it. Name your JSON keystore file as key and put it to the validator-node-dockerized directory. Put keystore's password to password file.

  4. Copy .env.example to .env and configure the .env file. There are a few settings you need to define:

    ETHSTATS_ID=[validator_name]
    ETHSTATS_CONTACT=[contact_email]
    ETHSTATS_SECRET=[netstat_secret_key]
    EXT_IP=[server_external_ip]
    ACCOUNT=[0x_your_mining_address]
    
    • ETHSTATS_ID - The displayed name of your validator in Netstats.
    • ETHSTATS_CONTACT - Validator's contact (e.g., e-mail).
    • ETHSTATS_SECRET - Secret key to connect to Netstat (should be provided by xDai team, please, request it).
    • EXT_IP - External IP of the current server.
    • ACCOUNT - Your mining address (with leading 0x).
  5. Start your node and Netstat service.

    $ docker-compose up -d

After docker containers are created, the node will sync with the chain (may take a while).

To restart you need to use docker-compose stop and docker-compose start being in the validator-node-dockerized directory.

About

How to launch validator node with Docker Compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors