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 iamge.
- Get the URL of the genesis file and other parameters (e.g. seed node) of the network.
- Copy
.env.templateto.env, and alsodocker-compose.yml.templatetodocker-compose.yml. - Edit
.envfor config onLIKECOIN_CHAIN_ID,LIKECOIN_MONIKER,LIKECOIN_GENESIS_URLandLIKECOIN_SEED_NODES. See comments in the file. - Run
docker-compose run --rm initto setup node data in.likedfolder. - Run
docker-compose up -dto 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/statusand see ifresult.sync_info.catching_upisfalse. - Setup validator key by
docker-compose run --rm liked-command keys add validatorand follow the instructions. This will generate a key namedvalidatorin 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.100000000000nanolikefor 100 LIKE),<DETAILS>is the introduction of the validator,<COMMISSION_RATE>is the commission you receive from delegators (e.g.0.1for 10%). - After sending the create validator transaction, your node should become a validator.