LikeCoin chain is a blockchain built on the Cosmos SDK. Project page: https://like.co/
- At least 40 GB disk space (SSD preferred)
- Docker
- Docker Compose with version >= 1.28
Normally you don't need to build the image by yourself, as the image is already hosted on Docker Hub.
For building the image, run ./build.sh
. This will build and tag the image.
- Get the URL of the genesis file and other parameters (e.g. seed node) of the network.
- Copy
.env.template
to.env
, and alsodocker-compose.yml.template
todocker-compose.yml
. - Edit
.env
for config onLIKECOIN_CHAIN_ID
,LIKECOIN_MONIKER
,LIKECOIN_GENESIS_URL
andLIKECOIN_SEED_NODES
. See comments in the file. - Run
docker-compose run --rm init
to setup node data in.liked
folder. - Run
docker-compose up -d
to start up the node and wait for synchronization. - Then you may check the logs by
docker-compose logs --tail 1000 -f
.
- Setup a full node by following the section above.
- Make sure the node is synchronized, by checking
localhost:26657/status
and see ifresult.sync_info.catching_up
isfalse
. - Setup validator key by
docker-compose run --rm liked-command keys add validator
and follow the instructions. This will generate a key namedvalidator
in the keystore. - Get the address and mnemonic words from the output of the command above. Jot down the address (
cosmos1...
) and backup the mnemonic words. - Get some LIKE in the address above. The LIKE tokens are needed for creating validator.
- Run
docker-compose run --rm create-validator --amount <AMOUNT> --details <DETAILS> --commission-rate <COMMISSION_RATE>
to create and activate validator.<AMOUNT>
is the amount for self-delegation (e.g.100000000000nanolike
for 100 LIKE),<DETAILS>
is the introduction of the validator,<COMMISSION_RATE>
is the commission you receive from delegators (e.g.0.1
for 10%). - After sending the create validator transaction, your node should become a validator.