Developers Forum for XinFin XDC Network

Discussion on: Repeated Error When Setting Up XDC Node

Collapse
11ppm profile image
11ppm Author •

I'm using the docker image xinfinorg/xdposchain:v2.4.0 and the network is Mainnet (mainnet_xinfinnetwork_1).

Doraemon@XDC:~$ docker ps
CONTAINER ID   IMAGE                         COMMAND                 CREATED          STATUS          PORTS                                                                                                                                               NAMES
6a68b6f81ad5   xinfinorg/xdposchain:v2.4.0   "bash /work/entry.sh"   15 minutes ago   Up 15 minutes   8555/tcp, 0.0.0.0:30303->30303/tcp, :::30303->30303/tcp, 0.0.0.0:8989->8545/tcp, [::]:8989->8545/tcp, 0.0.0.0:8888->8546/tcp, [::]:8888->8546/tcp   mainnet_xinfinnetwork_1
Doraemon@XDC:~$ docker logs -f mainnet_xinfinnetwork_1
Enter fullscreen mode Exit fullscreen mode
Collapse
gzliudan profile image
Daniel Liu • • Edited on

Here is a solution. You can setup a node based on snapshot file, then sync it with mainnet. The snapshot links:

Thread Thread
11ppm profile image
11ppm Author •

Thank you for your reply. I have already tried using snapshots several times. However, the number of peers did not increase, so I decided to start from scratch. Even then, the peers did not increase. Today, I performed a hard reset again and started using the snapshot. I will monitor the situation for 24 hours to see if the number of peers increases.

Thread Thread
gzliudan profile image
Daniel Liu • • Edited on

I tested it yesterday again. It takes a few minutes to connect other nodes, then sync with mainnet.

Thread Thread
gzliudan profile image
Daniel Liu •

We updated bootnodes for mainnet just now. Please run git pull to update https://github.com/XinFinOrg/XinFin-Node, and sync from genesis or snapshot file. BTW: the snapshot file is no longer needed now.

Thread Thread
11ppm profile image
11ppm Author •

I have updated the bootnodes.list. Although there are only 1-2 peers, the synchronization has been successfully completed. Thank you very much.

Some comments have been hidden by the post's author - find out more