After deploying XDC Masternodes, the blockchain slowly downloads but no peers will connect for any protracted period of time. This has been tested for up to a month and peers remained at 0-1.
To test, we deployed nodes at several different data-centres in different cities with the same result.
ufw was not enabled on mainnet testing nodes and probing ports with nmap revealed that port 30303 was open.
On starting an XDC node, it initially connects to the peers listed in the bootnodes.list file on your node. The node can then use these peers to find new peers, as well as being discoverable for incoming connections on port 30303.
(Port 30303 is used by mainnet nodes for peer-to-peer networking and node discovery. Note that for the Apothem testnet, this process occurs via port 30304).
The current inability for new nodes to find peers is caused by an issue with the nodes listed in the current version bootnodes.list file.
A solution to this is to replace the bootnodes.list file with a working one. Through developer channels, we have obtained a new bootnodes.list file and have made it accessible to others on our GitHub which is accessed in the solution detailed below.
To implement the solution, start by first connecting to your XDC node server. Remember to replace root in this command with your actual username for the remote server, replace 22 with the actual ssh port number you are using, and replace ip.address with the actual IP address of the remote server:
ssh -lroot -p22 ip.address
Change to the mainnet directory containing the bootnodes.list file:
Stop your node:
Backup your bootnodes.list file by renaming it:
mv bootnodes.list oldbootnodeslist
Download an updated bootnodes.list from our GitHub:
wget -O bootnodes.list "https://raw.githubusercontent.com/s4njk4n/Fix-bootnodes-list/main/bootnodes.list"
Restart your node:
Logout of your node:
Congratulations! You should see your peer count climbing normally now.
In case of any technical queries on XDC Network, feel free to drop your queries on XDC.Dev forum.
XinFin — XDC Social Links: