Tezos Local Nodes

What are Nodes?

Nodes form the infrastructure of a blockchain. All nodes on a blockchain are connected to each other and they constantly exchange the latest blockchain data with each other so all nodes stay up to date. They store, spread and preserve the blockchain data, so theoretically a blockchain exists on nodes.

Set Local Nodes

Setting up local nodes will create Tezos network on your machine along with baker. You always have an option to switch to remote nodes using tezster. After tezster successfully installed, Tezos nodes need to be setup on the local machine.

tezster setup

This will download the docker image containing 'pre-built tezos nodes and baker' on your system. You need to run setup only once.

Start Local Nodes

After building nodes, start tezos nodes:

tezster start-nodes

It will run a local network of nodes & baker and activate delphinet protocol. Now Nodes are running successfully on port 18732.

Note: If you are using mac or windows, make sure docker-desktop (for mac) or docker-toolbox (for windows) is in running state.

Stop Local Nodes

To stop the nodes, run:

tezster stop-nodes

It will stop all the tezster nodes running on the system. To restart the nodes run "tezster start-nodes".

Know Local Node Current Status

To know about local node status whether they are in the running state or not, run:

tezster node-status

Local Node Logs

Note: Make sure to start local nodes before fetching logs.

To get the logs of local node & baker, run:

tezster get-logs
It will save logs as archieve file format at - "/tmp/tezster-logs/tezster-node-logs.tar.gz".
Redirect to the logs folder using - "cd /tmp/tezster-logs".
To unzip run - "tar -xf tezster-node-logs.tar.gz" inside "/tmp/tezster-logs" folder.

It will collect local node related logs on your system .