Skip to main content

How to launch validator

Please install Docker Desktop to launch validators

Initialize working directory

  • Download and extract the oone-bootnode-config compressed folder:

    curl <<url to oone-bootnode-config>> --output bootnode-config.zip
    sudo apt-get install unzip
    unzip bootnode-config.zip
  • Open the folder in terminal:

    cd bootnode-template-testnet
  • Run the following commands one by one to setup environment

    echo "FEE_RECIPIENT=<<My withdrawl address>>" > .env
    ./setup-env.sh
  • Run the following command to initialize geth data directory

    docker run --rm -it -v ./volumes/geth-data:/root/.ethereum -v ./volumes/genesis.json:/root/genesis.json cr.oone.world/public-blockchain/ethereum-client-go:latest init /root/genesis.json

Start execution and consensus nodes

  • Run the following command to start geth node

    docker compose up -d geth

  • Run the following command to start beacon node

    docker compose up -d beacon

Generate Validator Keys

  • To generate the validator keys, you need to use the Oone Staking Deposit CLI tool.

    danger

    If you do not use the Oone version of the staking-deposit-cli, your deposits will be lost.

Launch validator client

  • Move folder with generated validator keys to "/volumes/" folder. Make sure that it has the name "validator_keys":

    mv staking-deposit-cli/validator_keys volumes/validator_keys
  • Run the following command to import validator keys

    docker run --rm -it -v ./volumes/lighthouse-testnet:/root/lighthouse-testnet -v ./volumes/validator-data:/root/.lighthouse -v ./volumes/validator_keys/:/root/validator-keys cr.oone.world/public-blockchain/lighthouse:latest lighthouse account validator import --testnet-dir /root/lighthouse-testnet --datadir /root/.lighthouse --directory /root/validator-keys --reuse-password

  • Run the following command to start validator client

    docker compose up -d validator

Make deposit for your validators

  • Visit the Oone Staking Launchpad to make deposits for your validators.
  • A MetaMask window appears and asks you to connect your account.
  • Upload your deposit data json file that starts with deposit_data-.
  • If the deposit data file contains multiple validator keys.
    • you can select the start index (default = 0) and end index (default = Number of validator keys - 1) to make deposit only for specific validators.
  • The MetaMask window appears to allow you to confirm each depsit tranaction. Please wait until each transaction is verified before confirming the next one.