Running a Validator

Visit the JBC Node repository: https://github.com/jibchain-net/node

PLEASE USE NORMAL `USER` NOT `ROOT`

How to run a validator node

  1. Clone JBC Node on your node machine:

cd ~
git clone https://github.com/jibchain-net/node.git jbc-node
cd jbc-node
  1. Check node file

ls -la

Example:

total 64
drwxr-xr-x  14 user  staff   448 Dec  3 16:37 .
drwxr-xr-x   4 user  staff   128 Dec  3 16:05 ..
-rw-r--r--   1 user  staff   682 Dec  3 16:07 .env.example
drwxr-xr-x  14 user  staff   448 Dec  3 16:20 .git
-rw-r--r--   1 user  staff     9 Dec  3 16:08 .gitignore
-rw-r--r--   1 user  staff   581 Dec  3 16:17 Makefile
-rw-r--r--   1 user  staff   569 Dec  3 16:05 README.md
drwxr-xr-x  11 user  staff   352 Dec  3 16:05 config
-rw-r--r--   1 user  staff  1518 Dec  3 16:05 docker-compose.yaml
-rw-r--r--   1 user  staff  1121 Dec  3 16:05 genesis.json
-rwxr-xr-x   1 user  staff   216 Dec  3 16:05 init-script.sh
drwxr-xr-x   4 user  staff   128 Dec  3 16:11 keys
-rw-r--r--   1 user  staff   466 Dec  3 16:19 validator.yaml
  1. Create an Environment file with:

  1. Edit .env file

  • VALIDATOR NODE: Edit on the VALIDATOR Configuration section only

    • NODE_GRAFFITI: use your node's graffiti flag to include a short text in the blocks that your node creates

    • PUBLIC_BEACON_NODE : If you're running a full node change to your beacon node.

    • FEE_RECIPIENT : Input your JBC address to receive transaction fees

  • FULL NODE: Edit BOOTNODE Configuration too

    • NODE_PUBLIC_IP : your machine's public IP address (IPv4)

  1. Create keystore file

From Generate Validator Keys section. You will receive a key pair

Copy keystore-m_<timestamp>.json to folder keys

Example:

if have more than 1 key please copy all keys
  1. Import validator key

Example:

INPUT YOUR VALIDATOR KEY PASSWORD

If a password is correct and imported successfully will be shown:

If you have more than 1 key store. you will input a password equal number of Keystore

  1. The system will create a folder data

Example:

You will see your validator public key that you imported!

  1. Run a Validator node

Example:

  1. Check a validator logs

Await validator activation and have fun!!

  1. Stop validator