Comment on page
Secure Staking With Qtum Star Network
When staking, the node is required to be always online. There may be some safety risk if the node is public to the network. For example, the node may be compromised. Or when the node is under attack, it may not be able to stake without problem. We can deploy a star network like the following picture. Cetner node is reponsible for staking. It spreads the new block through guard nodes. Guard nodes are public to the network. All safety risk or attach would go to the guard nodes. The staking can be ensured even if ther's only one guard node left.
In short, the main purpose is to make a Qtum node which can communicate with the blockchain network and is in a closed netowrk in order to avoid possible attack and risk.
The guard nodes don't need to be specified configured. The only requrement is they can be connected by the center node. You may need to open the port 3888 if there's a firewall.
There's a option named
connectin Qtum. Here's the description
Connect only to the specified node; -noconnect disables automatic
connections (the rules for this peer are the same as for
-addnode). This option can be specified multiple times to connect
to multiple nodes.
We can specify some IP address so the center node connects to the specified nodes only. This can be done by adding
connectoption to Qtum's configurationfile. You can add multiple
connect. One line is for one guard node. Please restart the center node after adding them and check if it connects to guard nodes.
In Linux system, you can run
qtum-cli getpeerinfoto check the connection info.