Start the node
you have to complete the following processes:
if you have completed the above, you can now proceed to start the node.
there are a few parts to this process:
you will start the node01 using the command.
./target/release/node-unitchain --base-path /tmp/node01 --chain ./customSpecRaw.json --port 30333 --rpc-port 9944 --validator --rpc-methods=Unsafe --name MyNode01 --rpc-cors all --rpc-external

take note of the BOOT NODE. it should look something like this:
If the bootnode shows up, it means that your chain is active.
in your local machine, go to the polkadotjs website and check on your node
you should see a screen like this:

After verifying that the node works, Stop the node by Ctrl-C
Insert the 1st set of key to keystore
Add keys to the keystore
AURA:
GRANDPA
To verify that you have inserted the key correctly, use this command:
it will show the key inserted

When you see the keys have been inserted, you can now proceed to run Node 01 again but this time in the background. there will not be any blocks produced yet (because you need 2 nodes to produce blocks!)
it will seem like nothing is happening but the node is running in the background. you can verify in polkadotjs.

Remember the bootnode that was created when you ran Node 01 ?
you need that now to run Node 02.
this is the command and you need to insert the bootnode into the command for the Node 02
./target/release/node-unitchain --base-path /tmp/node02 --chain ./customSpecRaw.json --port 30334 --rpc-port 9946 --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/BOOTNODE --validator --rpc-methods Unsafe --rpc-cors all --rpc-external --name MyNode02
when you run the command, you will notice that the node detected the boot node 01 but there are no blocks produced. (this is because the 2nd key has not been inserted to the keystore)

Congratulations! you have completed your trusted node setup!
Last updated