How to run a full node?
Last updated
Last updated
Remote Environment:Unbuntu 20.04 + Quorum
Local Environment:Windows 10 + Rum App V3.3.18
A full node is a concept that differs from a light node.
In order to lower the user access barrier, the Rum team developed light nodes, through which users can join SeedNets and also browse and publish content. But with a light node, users cannot contribute to the Rum network, such as generating blocks and creating SeedNets.
Full node users can use Rum's content management and publishing functions at the application level, and can also contribute to Rum Network.
The content of the Rum Network is aggregated and presented in different DApps by Groups (known as SeedNet at the application level). Groups are formed by different nodes that are linked together through a communication layer called Gossip Network. It can be seen that nodes are the base unit of the Rum System, and the nodes work together to serve the application level. As shown in the following figure:
The founder of a full node has the following benefits and privileges:
Nodes that contribute network resources are subsidized by the economic system (economic system under construction).
A SeedNet created by a full node makes that node has administrator authority for that SeedNet.
Clone Quorum to the server
Install the Golang
Build Quorum through binary
Execute the command:
make linux
or make buildall
The binaries are in the dist
dir.
You can also Build Docker image files:
sudo docker build -t quorum
In this step, we will run the Quorum service on the server.
Execute the following command in the root directory where your quorum
binaries are located:
Replace:{portNumber},{websocketPortNumber},{apiPortNumber},
to port numbers vacancies.
If the server has a firewall, remember to allow the above ports open to the public traffic.
The first time you run quorum
, you will be asked to generate a password, so keep it safe. You will need it when you run it again.
In this step, we acquire the parameters that will be used to run the Rum App.
If you ran quorum
in the tmux
or systemd
, system service, in the previous step, you can go directly to the root directory of quorum
and continue executing commands to acquire the jwt token. Otherwise, you may need to stop the running quorum service.
Execute the following command in the root directory where your quorum
binaries are located:
Replace {quorumdir}
to dir of quorum
.
After successfully executing the command, copy the text after token:
and save it to your local computer. We will use it in the next step.
In this step, we will connect to the remote Quorum service through the local Rum App to manage the running node.
Launch the Rum App and select "External Node" on the startup screen.
After selecting a local folder for storing local data, the next step is to fill in the required parameters:
Fill in the first blank with http://{server IP address}:{apiPortNumber}
Fill in the second blank with jwt token
acquired in the previous step.
Click the "OK" button and wait for a while till successfully connect to the full node remotely via the local Rum App.
If any problems, try:
Use ./quorum -help
to check your command line.
Note if the firewall allows each port.
If you fail in trying repeatedly, please toggle on the DevTools of the Rum App to analyze the problem.
Repository:
Follow the official Go language documentation:
First, and install it on your local computer.