-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8_Start_the_nodes.bash
34 lines (21 loc) · 1.49 KB
/
8_Start_the_nodes.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#### 8.start_the_node ####
#Start your stake pool with systemctl and begin syncing the blockchain!
sudo systemctl start cardano-node
#Install gLiveView, a monitoring tool.
#gLiveView displays crucial node status information and works well with systemd services. Credits to the Guild Operators for creating this tool.
cd $NODE_HOME
sudo apt install bc tcptraceroute -y
curl -s -o gLiveView.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/gLiveView.sh
curl -s -o env https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/env
chmod 755 gLiveView.sh
#Run the following to modify env with the updated file locations.
sed -i env \
-e "s/\#CONFIG=\"\${CNODE_HOME}\/files\/config.json\"/CONFIG=\"\${NODE_HOME}\/mainnet-config.json\"/g" \
-e "s/\#SOCKET=\"\${CNODE_HOME}\/sockets\/node0.socket\"/SOCKET=\"\${NODE_HOME}\/db\/socket\"/g"
#A node must reach epoch 208 (Shelley launch) before gLiveView.sh can start tracking the node syncing. You can track the node syncing using journalctl before epoch 208.
journalctl --unit=cardano-node --follow
# Run gLiveView to monitor the progress of the sync'ing of the blockchain.
./gLiveView.sh
#For more information, refer to the official Guild Live View docs.
# Pro tip: If you synchronize a node's database, you can copy the database directory over to your other node directly and save time.
#Congratulations! Your node is running successfully now. Let it sync up.