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
Clone JBC Node on your node machine:
cd ~
git clone https://github.com/jibchain-net/node.git jbc-node
cd jbc-nodeCheck node file
ls -laExample:
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.yamlCreate an Environment file with:
Edit
.envfile
VALIDATOR NODE: Edit on the VALIDATOR Configuration section onlyNODE_GRAFFITI: use your node's graffiti flag to include a short text in the blocks that your node createsPUBLIC_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 tooNODE_PUBLIC_IP: your machine's public IP address (IPv4)
Create keystore file
From Generate Validator Keys section. You will receive a key pair
Copy keystore-m_<timestamp>.json to folder keys
Example:

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
The system will create a folder
data
Example:
You will see your validator public key that you imported!
Run a Validator node
Example:
Check a validator logs
Await validator activation and have fun!!
Stop validator