singyiu / likecoin-chain

LikeCoin chain node

Home Page:https://likecoin.bigdipper.live

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LikeCoin chain is a blockchain built on the Cosmos SDK. Project page: https://like.co/

Requirements

  • At least 40 GB disk space (SSD preferred)
  • Docker
  • Docker Compose with version >= 1.28

Building Docker image

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.

Setting up a full node

  1. Get the URL of the genesis file and other parameters (e.g. seed node) of the network.
  2. Copy .env.template to .env, and also docker-compose.yml.template to docker-compose.yml.
  3. Edit .env for config on LIKECOIN_CHAIN_ID, LIKECOIN_MONIKER, LIKECOIN_GENESIS_URL and LIKECOIN_SEED_NODES. See comments in the file.
  4. Run docker-compose run --rm init to setup node data in .liked folder.
  5. Run docker-compose up -d to start up the node and wait for synchronization.
  6. Then you may check the logs by docker-compose logs --tail 1000 -f.

Setting up a validator node

  1. Setup a full node by following the section above.
  2. Make sure the node is synchronized, by checking localhost:26657/status and see if result.sync_info.catching_up is false.
  3. Setup validator key by docker-compose run --rm liked-command keys add validator and follow the instructions. This will generate a key named validator in the keystore.
  4. Get the address and mnemonic words from the output of the command above. Jot down the address (cosmos1...) and backup the mnemonic words.
  5. Get some LIKE in the address above. The LIKE tokens are needed for creating validator.
  6. 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%).
  7. After sending the create validator transaction, your node should become a validator.

About

LikeCoin chain node

https://likecoin.bigdipper.live

License:GNU General Public License v3.0


Languages

Language:Go 94.8%Language:Shell 4.4%Language:Dockerfile 0.8%