Create and customize your XDC01 private chain within minutes. ( please go here to setup XinFin Public node: https://github.com/XinFinOrg/XinFin-Node )
XinFin Core Network
Operating System: Ubuntu 16.04 64-bit or higher
Tools: Docker, Docker Compose
Hardware:
| Hardware | Minimum | Desired |
|---|---|---|
| CPU's: | 2 | 4 |
| Memory: | 4 GB | 8 GB |
| Storage: | 100 GB | 500 GB |
Following network ports need to be open for the nodes to communicate
| Port | Type | Definition |
|---|---|---|
| 21001-2100* | TCP/UDP | GETH |
| 22001-2200* | TCP | RPC |
| 23001-2300* | TCP | RAFT |
| 9001-900* | TCP | Constellation |
*-auto-increment depending on number of nodes
git clone https://github.com/XinFinorg/XDC01-docker-Nnodes.git sudo ./install_docker.sh sudo docker pull xinfinorg/quorum:v2.1.0 cd static-nodes sudo ./setup.sh Enter number of nodes, private IP of host machine & unique docker subnet sudo docker-compose -p <PROJECT_NAME_STATIC_NODE> up -d sudo docker exec -it PROJECT_NAME_STATIC_NODES_node_1_1 geth attach /qdata/dd/geth.ipc sudo docker-compose -p <PROJECT_NAME_STATIC_NODE> down cd dynamic-node sudo ./setup.sh Enter the public IP of the new host machine (private IP in case of local setup, assigned by router) Enter the node number (e.g. if you have 3 nodes up with the initial setup then node number here would be 4)
raft.addPeer(enodeID) cd dynamic-node sudo docker-compose -p <PROJECT_NAME_DYNAMIC_NODE> up -d sudo docker pull xinfinorg/quorum:v2.x.x sudo docker-compose -p <PROJECT_NAME_STATIC/DYNAMIC_NODE> down sudo ./update_quorum.sh quorum:v2.x.x sudo docker-compose -p <PROJECT_NAME_STATIC/DYNAMIC_NODE> up -d - Install Oracle VirtualBox
- Install Vagrant
- Install GIT
- Launch command prompt & follow the commands below
git clone https://github.com/XinFinOrg/XDC01-docker-Nnodes.git cd XDC01-docker-Nnodes vagrant up vagrant ssh - XDC01-docker-Nnodes is automatically copied to /home/vagrant/ follow Step 1, 2 & 3 as explained before in this document to complete the network setup.
- To shutdown the vagrant instance, run vagrant suspend. To delete it, run vagrant destroy.
( please go here to setup XinFin Public node: https://github.com/XinFinOrg/XinFin-Node )
Join our Telegram Developer Group and put up your queries or raise issue in Github to get answer. We would love to answer your questions.
