description |
---|
This is the deprecated method of setting up a node. Please read the latest guide first. |
- Clone the project
- Build the Docker image
- Initialize the node and account keys
- Start up the node and wait for synchronization catch up
Run git clone https://github.com/likecoin/likecoin-chain --branch release/v3.x --single-branch
, then cd likecoin-chain
.
Run make build-docker
.
- Run
cp docker-compose.yml.template docker-compose.yml
cp .env.template .env
``for setting up thedocker-compose.yml
and.env
.\ - Modify
.env
file for the network config.
For mainnet:
LIKECOIN_MONIKER="<change this for your node's name>"
LIKECOIN_DOCKER_IMAGE="likecoin/likecoin-chain:v4.2.0"
LIKECOIN_CHAIN_ID="likecoin-mainnet-2"
LIKECOIN_GENESIS_URL="https://gist.githubusercontent.com/williamchong/de1bdf2b2a8f3bce50a4b5e46af26959/raw/4e21bff586771c849d22e1916bcb88c6463fbaa0/genesis.json"
LIKECOIN_SEED_NODES="[email protected]:26656,[email protected]:26656"
\
For testnet:
LIKECOIN_MONIKER="<change this for your node's name>"
LIKECOIN_DOCKER_IMAGE="likecoin/likecoin-chain:v4.2.0"
LIKECOIN_CHAIN_ID="likecoin-public-testnet-5"
LIKECOIN_GENESIS_URL="https://gist.githubusercontent.com/nnkken/4a161c14e9dc03f412c36d11cdf7ea27/raw/9265c348c9f79b918d99aeee7f6c29b6b3bc449f/genesis.json"
LIKECOIN_SEED_NODES="
[email protected]:26656"
\
Note thatLIKECOIN_MONIKER
is a custom name you decide for your node's name.\ - Run
docker-compose run --rm init
to create.liked
directories, with node config and keys initialized.\ - Run
docker-compose run --rm liked-command keys add validator
to add an operator key. The command will output your operator address, and also a 12-24 words mnemonic phrase. Please backup the mnemonic phrase properly as it represents your validator's private key.
When asked, enter and repeat a passphrase for protecting your account key.
Run docker-compose up -d
. This will create and run the Docker containers in background.
To see if the node is running well, you can input docker-compose logs
to see if there is any error.