diff --git a/docs/xdcchain/developers/xdposchain_privatenet.md b/docs/xdcchain/developers/xdposchain_privatenet.md new file mode 100644 index 0000000..fec132d --- /dev/null +++ b/docs/xdcchain/developers/xdposchain_privatenet.md @@ -0,0 +1,44 @@ +--- +title: Deploy Private Blockchain With XDC2.0 Consensus +--- + + +# Deploy Private Blockchain With XDC2.0 Consensus + +## Deploy With Wizard UI + + 1. Pull `start.sh` script from the generator Github repo and run. This will start a local webserver. + ``` + curl -O https://raw.githubusercontent.com/XinFinOrg/Subnet-Deployment/v2.1.0/container-manager/start_xdpos.sh + chmod +x start_xdpos.sh + ./start_xdpos.sh + ``` + + 2. Go to [http://localhost:5210/](http://localhost:5210) in your browser. +
+ If you are running this on a remote server. +

+ - if this is running on your server, first use ssh tunnel: ssh -N -L localhost:5210:localhost:5210 USERNAME@IP_ADDRESS -i SERVER_KEY_FILE +
+ - if you are using VSCode Remote Explorer, ssh tunnel will be available by default +

+
+ + 3. Input your desired configuration. + ![Config](../img/privatenet_configs.png) + + 4. Submit and continue in your terminal with the below command. + ``` + cd generated; + ./docker-up.sh machine1; + ``` + ![Success](../img/privatenet_generate_success.png) + 5. Confirm the private blockchain is working correcly by running check scripts. + ``` + ./scripts/check-peer.sh + ``` + ![Check Peer](../img/privatenet_check_peer.png) + ``` + ./scripts/check-mining.sh + ``` + ![Check Mining](../img/privatenet_check_mining.png) \ No newline at end of file diff --git a/docs/xdcchain/img/privatenet_check_mining.png b/docs/xdcchain/img/privatenet_check_mining.png new file mode 100644 index 0000000..cf00c0f Binary files /dev/null and b/docs/xdcchain/img/privatenet_check_mining.png differ diff --git a/docs/xdcchain/img/privatenet_check_peer.png b/docs/xdcchain/img/privatenet_check_peer.png new file mode 100644 index 0000000..7146d9f Binary files /dev/null and b/docs/xdcchain/img/privatenet_check_peer.png differ diff --git a/docs/xdcchain/img/privatenet_configs.png b/docs/xdcchain/img/privatenet_configs.png new file mode 100644 index 0000000..0593bc6 Binary files /dev/null and b/docs/xdcchain/img/privatenet_configs.png differ diff --git a/docs/xdcchain/img/privatenet_configs_expanded.png b/docs/xdcchain/img/privatenet_configs_expanded.png new file mode 100644 index 0000000..0c5315f Binary files /dev/null and b/docs/xdcchain/img/privatenet_configs_expanded.png differ diff --git a/docs/xdcchain/img/privatenet_generate_success.png b/docs/xdcchain/img/privatenet_generate_success.png new file mode 100644 index 0000000..b610afc Binary files /dev/null and b/docs/xdcchain/img/privatenet_generate_success.png differ diff --git a/mkdocs.yml b/mkdocs.yml index a16b8cb..31ea897 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -77,6 +77,7 @@ nav: - Migrating from EVM to XDC: ./xdcchain/evmtoxdc.md - Wallet Configuration: ./xdcchain/developers/wallet-configuration.md - Get XDC Listed: ./xdcchain/developers/getxdclisted.md + - XDC2.0 Private Network: ./xdcchain/developers/xdposchain_privatenet.md - Node Operators: - Node Architecture: ./xdcchain/developers/node_operators/node_architecture.md